1
0
forked from 0ad/0ad

Fix typo in foundation code.

Introduced in 2bda444435.
Refs. #6709

Differential revision: https://code.wildfiregames.com/D4909
Comments by: @Stan
This was SVN commit r27508.
This commit is contained in:
Freagarach 2023-01-30 11:08:44 +00:00
parent 34765a4664
commit f0bde861f6

View File

@ -345,8 +345,7 @@ Foundation.prototype.Build = function(builderEnt, work)
if (cmpBuildingIdentity.GetPhenotype() !== oldPhenotype)
{
cmpBuildingIdentity.SetPhenotype(oldPhenotype);
if (cmpVisualCorpse)
cmpVisualCorpse.RecomputeActorName();
Engine.QueryInterface(building, IID_Visual)?.RecomputeActorName();
}
}