diff options
| author | Simon Tatham <anakin@pobox.com> | 2023-05-02 19:51:29 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2023-05-02 19:51:29 +0100 |
| commit | 89e9026ee49fd5469ad989e629effd2e4f6ade2a (patch) | |
| tree | 52141655a9c6fc63f019d63658fdce4c0ac462fb /midend.c | |
| parent | e0bb6d3b8546ea67e79cb190a96c26961ddacdf6 (diff) | |
| download | puzzles-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |