changeset 400:4fb0ce06a43a

core: fix invalid use of game.states
author David Demelier <markand@malikania.fr>
date Wed, 16 Mar 2022 13:32:15 +0100
parents 77f843de956c
children df5e1fea1d2e
files src/libmlk-core/core/game.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/libmlk-core/core/game.c	Fri Feb 18 16:34:18 2022 +0100
+++ b/src/libmlk-core/core/game.c	Wed Mar 16 13:32:15 2022 +0100
@@ -131,7 +131,7 @@
 void
 game_quit(void)
 {
-	for (size_t i = 0; i < UTIL_SIZE(game.states); ++i) {
+	for (size_t i = 0; i < game.statesz; ++i) {
 		if (game.states[i])
 			state_finish(game.states[i]);