Fix comparing requirements for GAIA.
There was no check for `cmpTechnologyManager` in the comparing code. Reported by: @Langbart Fixes #6705 This was SVN commit r27480.
This commit is contained in:
parent
a054bd7a9d
commit
cae24f17a0
@ -90,7 +90,7 @@ RequirementsHelper.prototype.AreRequirementsMet = function(template, playerID)
|
||||
return true;
|
||||
|
||||
const cmpTechManager = QueryPlayerIDInterface(playerID, IID_TechnologyManager);
|
||||
return this.AllRequirementsMet(template, cmpTechManager);
|
||||
return cmpTechManager && this.AllRequirementsMet(template, cmpTechManager);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user