1
0
forked from 0ad/0ad

Fix wrong technology application as discovered by wowgetoffyourcellphone and niektb

This was SVN commit r16726.
This commit is contained in:
sanderd17 2015-06-05 10:39:10 +00:00
parent a839adc615
commit e9c27d4066

View File

@ -229,7 +229,7 @@ Capturable.prototype.OnValueModification = function(msg)
return;
var oldMaxCp = this.GetMaxCapturePoints();
this.maxCp = ApplyValueModificationsToEntity("Capturable/Max", +this.template.Max, this.entity);
this.maxCp = ApplyValueModificationsToEntity("Capturable/CapturePoints", +this.template.CapturePoints, this.entity);
if (oldMaxCp == this.maxCp)
return;