mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-03-04 09:11:27 +01:00
ResumeExecution: guard against open/link failure on live reload
This commit is contained in:
parent
08d2e544b7
commit
0af3d8b1d0
1 changed files with 3 additions and 2 deletions
|
@ -502,8 +502,9 @@ SYMBOL_INTERNAL void ResumeExecution(struct Game* game) {
|
||||||
char* name = strdup(tmp->name);
|
char* name = strdup(tmp->name);
|
||||||
CloseGamestate(game, tmp);
|
CloseGamestate(game, tmp);
|
||||||
tmp->name = name;
|
tmp->name = name;
|
||||||
OpenGamestate(game, tmp);
|
if (OpenGamestate(game, tmp) && LinkGamestate(game, tmp)) {
|
||||||
LinkGamestate(game, tmp);
|
tmp->api->Gamestate_Reload(game, tmp->data);
|
||||||
|
}
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
game->_priv.paused = false;
|
game->_priv.paused = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue