Fix for possible crash

This commit is contained in:
Ciaran Fisher
2015-11-01 20:36:03 +00:00
parent 3335429dfc
commit f847f7c49d

View File

@@ -4329,7 +4329,7 @@ function ctld.getGroup(groupName)
local _filteredUnits = {} --contains alive units
local _x = 1
if _groupUnits ~= nil then
if _groupUnits ~= nil and _groupUnits:isExist() then
_groupUnits = _groupUnits:getUnits()