Fix random five scenario using classic weapons for last slot

This commit is contained in:
tmyqlfpir authored and GitHub committed 2023-09-08 20:25:30 +10:00
1 parent 892d50ba7c
commit 7e8c57ee4d
1 file changed
+4
+4
View File
@@ -1154,7 +1154,11 @@ void mpApplyWeaponSet(void)
mpSetWeaponSlot(i, random() % numoptions + 1);
}
#ifndef PLATFORM_N64 // take into account the new classic weapons slots
mpSetWeaponSlot(i, MPWEAPON_DISABLED - 1);
#else
mpSetWeaponSlot(i, mpGetNumWeaponOptions() - 1);
#endif
}
}