diff options
| author | Simon Tatham <anakin@pobox.com> | 2013-04-06 08:08:15 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2013-04-06 08:08:15 +0000 |
| commit | be6bb379bb9ead46794a289ff8a68c7f5a2ede89 (patch) | |
| tree | e6e41ac6b6a5935c8ffdac2b22e711d2da8b8ccc | |
| parent | ce604aa68d94bcbe685598b70fde1205aaaf3a91 (diff) | |
| download | puzzles-be6bb379bb9ead46794a289ff8a68c7f5a2ede89.zip puzzles-be6bb379bb9ead46794a289ff8a68c7f5a2ede89.tar.gz puzzles-be6bb379bb9ead46794a289ff8a68c7f5a2ede89.tar.bz2 puzzles-be6bb379bb9ead46794a289ff8a68c7f5a2ede89.tar.xz | |
Don't forget to NULL out the new game id notification callback, or
else it might start off accidentally initialised to nonsense in front
ends which don't use it.
[originally from svn r9817]
| -rw-r--r-- | midend.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -109,6 +109,9 @@ midend *midend_new(frontend *fe, const game *ourgame, me->nstates = me->statesize = me->statepos = 0; me->states = NULL; me->params = ourgame->default_params(); + me->game_id_change_notify_function = NULL; + me->game_id_change_notify_ctx = NULL; + /* * Allow environment-based changing of the default settings by * defining a variable along the lines of `NET_DEFAULT=25x25w' |