1
0
forked from 0ad/0ad

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:
Freagarach 2023-01-23 07:48:14 +00:00
parent a054bd7a9d
commit cae24f17a0

View File

@ -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);
};
/**