mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Fix changing ownership to -1
This was SVN commit r16756.
This commit is contained in:
parent
204dcf201c
commit
2a657a7eb7
1 changed files with 3 additions and 0 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in a new issue