mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-12 20:18:00 +01:00
don't Reload gamestates that aren't loaded
This commit is contained in:
parent
4a60bfdcf9
commit
3b2a675d23
1 changed files with 1 additions and 1 deletions
|
@ -539,7 +539,7 @@ SYMBOL_INTERNAL void ResumeExecution(struct Game* game) {
|
|||
char* name = strdup(tmp->name);
|
||||
CloseGamestate(game, tmp);
|
||||
tmp->name = name;
|
||||
if (OpenGamestate(game, tmp) && LinkGamestate(game, tmp)) {
|
||||
if (OpenGamestate(game, tmp) && LinkGamestate(game, tmp) && tmp->loaded) {
|
||||
if (tmp->api->Gamestate_Reload) {
|
||||
tmp->api->Gamestate_Reload(game, tmp->data);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue