From 3dd72ec389a41407671194ffb865c5616b2399e0 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Tue, 3 Dec 2019 03:35:44 +0100 Subject: [PATCH] gamestate: fix incorrect guard condition in PauseAllGamestates --- src/gamestate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gamestate.c b/src/gamestate.c index bd8aaeb..3b5c08c 100644 --- a/src/gamestate.c +++ b/src/gamestate.c @@ -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;