mirror of
https://github.com/mrSkortch/MissionScriptingTools.git
synced 2025-08-15 10:47:23 +00:00
Fixed isTerrainValid validation for terrain types table
terrainTypes table index is no longer being compared with SurfaceType enum values, leading to incorrect type inclusions
This commit is contained in:
parent
4f4b890339
commit
6d8390cec9
2
mist.lua
2
mist.lua
@ -6678,7 +6678,7 @@ do -- group tasks scope
|
||||
elseif type(terrainTypes) == 'table' then -- if its a table it does this check
|
||||
for typeId, typeData in pairs(terrainTypes) do
|
||||
for constId, constData in pairs(land.SurfaceType) do
|
||||
if string.lower(constId) == string.lower(typeData) or string.lower(constData) == string.lower(typeId) then
|
||||
if string.lower(constId) == string.lower(typeData) or string.lower(constData) == string.lower(typeData) then
|
||||
table.insert(typeConverted, constId)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user