From 78acaceaaa88487d1ff98c056759a285e5c600e3 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 15 Aug 2024 20:27:45 +0200 Subject: [PATCH] changed order of checks and initialization of cave structures This change ensures that the element properties array is checked for consistency (in function "gd_cave_db_init()") before its values are used (in function "gd_cave_init()"). --- src/game_bd/main_bd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game_bd/main_bd.c b/src/game_bd/main_bd.c index 9f94b3b6..dc92297e 100644 --- a/src/game_bd/main_bd.c +++ b/src/game_bd/main_bd.c @@ -33,8 +33,8 @@ void bd_open_all(void) { InitGraphicInfo_BD(); - gd_cave_init(); gd_cave_db_init(); + gd_cave_init(); gd_c64_import_init_tables(); -- 2.34.1