aboutsummaryrefslogtreecommitdiff
path: root/midend.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2023-05-02 19:51:29 +0100
committerSimon Tatham <anakin@pobox.com>2023-05-02 19:51:29 +0100
commit89e9026ee49fd5469ad989e629effd2e4f6ade2a (patch)
tree52141655a9c6fc63f019d63658fdce4c0ac462fb /midend.c
parente0bb6d3b8546ea67e79cb190a96c26961ddacdf6 (diff)
downloadpuzzles-89e9026ee49fd5469ad989e629effd2e4f6ade2a.zip
puzzles-89e9026ee49fd5469ad989e629effd2e4f6ade2a.tar.gz
puzzles-89e9026ee49fd5469ad989e629effd2e4f6ade2a.tar.bz2
puzzles-89e9026ee49fd5469ad989e629effd2e4f6ade2a.tar.xz
midend_apply_prefs: apply prefs to the right ui.
The function takes a game_ui pointer as an argument, and then ignores it and unconditionally applies the midend's saved preferences to me->ui.
Diffstat (limited to 'midend.c')
-rw-r--r--midend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/midend.c b/midend.c
index aeaec90..0543830 100644
--- a/midend.c
+++ b/midend.c
@@ -2878,7 +2878,7 @@ static void midend_apply_prefs(midend *me, game_ui *ui)
rctx->len = me->be_prefs.len;
rctx->pos = 0;
const char *err = midend_deserialise_prefs(
- me, me->ui, midend_serialise_buf_read, rctx);
+ me, ui, midend_serialise_buf_read, rctx);
/* This should have come from our own serialise function, so
* it should never be invalid. */
assert(!err && "Bad internal serialisation of preferences");