Fix some ailists not running

This commit is contained in:
Ryan Dwyer
2022-11-03 21:22:21 +10:00
parent 4e797820ea
commit 895215c332
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -13384,7 +13384,7 @@ void chraTickBg(void)
}
// Run BG scripts
for (i = 0; i < g_NumBgChrs; i++) {
for (i = g_NumBgChrs - 1; i >= 0; i--) {
if (!g_Vars.autocutplaying || (g_BgChrs[i].hidden2 & CHRH2FLAG_TICKDURINGAUTOCUT)) {
chraTick(&g_BgChrs[i]);
}
+2
View File
@@ -171,6 +171,8 @@ void aiTerminateCleanup(void)
}
g_NumBgChrs--;
g_Vars.chrdata = NULL;
}
}
}