1
0
forked from mirrors/0ad

Fix changing ownership to -1

This was SVN commit r16756.
This commit is contained in:
sanderd17
2015-06-13 13:02:10 +00:00
parent 204dcf201c
commit 2a657a7eb7
@@ -253,6 +253,9 @@ Capturable.prototype.OnTerritoryDecayChanged = function(msg)
Capturable.prototype.OnOwnershipChanged = function(msg)
{
if (msg.to == -1)
return; // we're dead
if (this.cp.length)
{
if (!this.cp[msg.from])