mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -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:
3
midend.c
3
midend.c
@ -2516,7 +2516,8 @@ 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);
|
||||||
me->ourgame->decode_ui(data.ui, data.uistr);
|
if (data.uistr)
|
||||||
|
me->ourgame->decode_ui(data.ui, data.uistr);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Run the externally provided check function, and abort if it
|
* Run the externally provided check function, and abort if it
|
||||||
|
Reference in New Issue
Block a user