gamestate: fix incorrect guard condition in PauseAllGamestates

This commit is contained in:
Sebastian Krzyszkowiak 2019-12-03 03:35:44 +01:00
parent c74fbc2be8
commit 3dd72ec389
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -178,7 +178,7 @@ SYMBOL_EXPORT void UnloadAllGamestates(struct Game* game) {
SYMBOL_EXPORT void PauseAllGamestates(struct Game* game) {
struct Gamestate* tmp = game->_priv.gamestates;
while (tmp) {
if (tmp->started || !tmp->paused) {
if (tmp->started && !tmp->paused) {
PauseGamestate(game, tmp->name);
}
tmp = tmp->next;