From: Holger Schemel Date: Thu, 15 Aug 2024 18:27:45 +0000 (+0200) Subject: changed order of checks and initialization of cave structures X-Git-Tag: 4.4.0.0-test-4~309 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=78acaceaaa88487d1ff98c056759a285e5c600e3;p=rocksndiamonds.git 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()"). --- 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();