fix jeep/tank check for l_AdjustEnemyStrengthInSector (Mini Events)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9325 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
rftr
2022-03-16 18:28:09 +00:00
parent a377eb2aaf
commit bc829a388e
+2 -2
View File
@@ -275,8 +275,8 @@ namespace MiniEventHelpers
const INT8 troopAdjustment = static_cast<INT8>(lua_tointeger(LS, 4));
const INT8 eliteAdjustment = static_cast<INT8>(lua_tointeger(LS, 5));
const INT8 robotAdjustment = gGameExternalOptions.fASDActive && gGameExternalOptions.fASDAssignsRobots ? static_cast<INT8>(lua_tointeger(LS, 6)) : 0;
const INT8 jeepAdjustment = gGameExternalOptions.fASDActive && gGameExternalOptions.fASDAssignsRobots ? static_cast<INT8>(lua_tointeger(LS, 7)) : 0;
const INT8 tankAdjustment = gGameExternalOptions.fASDActive && gGameExternalOptions.fASDAssignsRobots ? static_cast<INT8>(lua_tointeger(LS, 8)) : 0;
const INT8 jeepAdjustment = gGameExternalOptions.fASDActive && gGameExternalOptions.fASDAssignsJeeps ? static_cast<INT8>(lua_tointeger(LS, 7)) : 0;
const INT8 tankAdjustment = gGameExternalOptions.fASDActive && gGameExternalOptions.fASDAssignsTanks ? static_cast<INT8>(lua_tointeger(LS, 8)) : 0;
SECTORINFO *sector = &(SectorInfo[SECTOR(x,y)]);
if (!sector)