Merge pull request #48 from tmyqlfpir/fix-ai-menu-mp

Fix menu crash when issuing order to all bots
This commit is contained in:
fgsfds authored and GitHub committed 2023-08-20 15:28:14 +02:00
commit 170f2646e1
1 file changed
+2 -2
+2 -2
View File
@@ -77,7 +77,7 @@ void amTick(void)
}
if (buttonsstate & A_BUTTON) {
#if VERSION >= VERSION_JPN_FINAL
#if VERSION >= VERSION_JPN_FINAL || !defined(PLATFORM_N64)
if (g_Vars.currentplayer->numaibuddies > 0) {
g_AmMenus[g_AmIndex].allbots = true;
}
@@ -91,7 +91,7 @@ void amTick(void)
}
if ((buttonsstate & R_TRIG) || (buttonsstate & L_TRIG)) {
#if VERSION >= VERSION_JPN_FINAL
#if VERSION >= VERSION_JPN_FINAL || !defined(PLATFORM_N64)
if (g_Vars.currentplayer->numaibuddies > 0) {
g_AmMenus[g_AmIndex].allbots = true;
}