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:
Nick 'MorpheusXAUT' Müller 2019-05-03 22:00:45 +02:00
parent 4f4b890339
commit 6d8390cec9
No known key found for this signature in database
GPG Key ID: BA82195790169334

View File

@ -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