mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
When loading, don't decode_ui unless we have a UI
If the save file doesn't have a UI line, it's not sensible to try to decode it.
This commit is contained in:
1
midend.c
1
midend.c
@ -2516,6 +2516,7 @@ static const char *midend_deserialise_internal(
|
|||||||
}
|
}
|
||||||
|
|
||||||
data.ui = me->ourgame->new_ui(data.states[0].state);
|
data.ui = me->ourgame->new_ui(data.states[0].state);
|
||||||
|
if (data.uistr)
|
||||||
me->ourgame->decode_ui(data.ui, data.uistr);
|
me->ourgame->decode_ui(data.ui, data.uistr);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user