forked from 0ad/0ad
fix crash when switching to gaia perspective while controlAllUnits is enabled
This was SVN commit r16969.
This commit is contained in:
parent
025391db35
commit
c599019b0a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user