changeset 130:09978921e281

core: fix infinite loop with game_switch
author David Demelier <markand@malikania.fr>
date Wed, 07 Oct 2020 09:11:09 +0200
parents 9301c7c84471
children c679e08b32b2
files libcore/core/game.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libcore/core/game.c	Tue Oct 06 13:55:20 2020 +0200
+++ b/libcore/core/game.c	Wed Oct 07 09:11:09 2020 +0200
@@ -94,6 +94,7 @@
 	assert(state);
 
 	if (quick) {
+		game.state_next = NULL;
 		game.state = state;
 		game.state->enter();
 	} else