don't Reload gamestates that aren't loaded

This commit is contained in:
Sebastian Krzyszkowiak 2018-07-18 19:46:59 +02:00
parent 4a60bfdcf9
commit 3b2a675d23

View file

@ -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);
}