ReloadGamestates: also reload loading gamestate

This commit is contained in:
Sebastian Krzyszkowiak 2019-02-14 05:35:17 +01:00
parent 0ba9c7bbae
commit 199ad64bac
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -121,6 +121,9 @@ SYMBOL_INTERNAL void ReloadGamestates(struct Game* game) {
}
tmp = tmp->next;
}
if (game->_priv.loading.gamestate->api->reload) {
game->_priv.loading.gamestate->api->reload(game, game->_priv.loading.gamestate->data);
}
}
SYMBOL_INTERNAL void EventGamestates(struct Game* game, ALLEGRO_EVENT* ev) {