fix crash when switching to gaia perspective while controlAllUnits is enabled

This was SVN commit r16969.
This commit is contained in:
mimo 2015-09-01 20:46:49 +00:00
parent 025391db35
commit c599019b0a

View File

@ -1339,6 +1339,8 @@ function getEntityLimitAndCount(playerState, entType)
"entLimitChangers": undefined,
"canBeAddedCount": undefined
};
if (!playerState.entityLimits)
return r;
var template = GetTemplateData(entType);
var entCategory = null;
if (template.trainingRestrictions)