mirror of
https://github.com/mrSkortch/MissionScriptingTools.git
synced 2025-08-15 10:47:23 +00:00
Merge pull request #45 from MorpheusXAUT/development
isTerrainValid validation for terrain types table fails with multiple entries
This commit is contained in:
commit
50ddf1f337
2
mist.lua
2
mist.lua
@ -6904,7 +6904,7 @@ do -- group tasks scope
|
|||||||
elseif type(terrainTypes) == 'table' then -- if its a table it does this check
|
elseif type(terrainTypes) == 'table' then -- if its a table it does this check
|
||||||
for typeId, typeData in pairs(terrainTypes) do
|
for typeId, typeData in pairs(terrainTypes) do
|
||||||
for constId, constData in pairs(land.SurfaceType) 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)
|
table.insert(typeConverted, constId)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user