1
0
forked from 0ad/0ad

0-population units (e.g. sheep) should never have production blocked.

This was SVN commit r12463.
This commit is contained in:
Deiz 2012-08-18 18:44:20 +00:00
parent 77f26c454a
commit 9519635869

View File

@ -75,7 +75,7 @@ Player.prototype.GetColour = function()
Player.prototype.TryReservePopulationSlots = function(num) Player.prototype.TryReservePopulationSlots = function(num)
{ {
if (num > (this.GetPopulationLimit() - this.GetPopulationCount())) if (num != 0 && num > (this.GetPopulationLimit() - this.GetPopulationCount()))
return false; return false;
this.popUsed += num; this.popUsed += num;