port: hackfix a bunch of UB and seg-related issues

game now runs with -O2
This commit is contained in:
fgsfds committed 2023-08-08 16:38:45 +02:00
1 parent 245d5095b5
commit a37441b221
9 files changed
+82 -2

No files matched your search

+3
View File
@@ -187,6 +187,9 @@ extern struct attackanimconfig g_AttackAnimLightWalk;
extern struct attackanimconfig g_AttackAnimLightRun;
extern struct attackanimconfig g_AttackAnimDualWalk;
extern struct attackanimconfig g_AttackAnimDualRun;
#ifdef AVOID_UB
extern struct attackanimconfig *g_AttackAnimArray[];
#endif
extern u32 g_StageFlags;
extern struct chrdata *g_BgChrs;
extern s16 *g_BgChrnums;