mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Remove current targets when changing ownership. Fixes #1794.
This was SVN commit r13014.
This commit is contained in:
parent
61734c48d4
commit
18b532a195
1 changed files with 3 additions and 0 deletions
|
|
@ -30,6 +30,9 @@ BuildingAI.prototype.Init = function()
|
|||
|
||||
BuildingAI.prototype.OnOwnershipChanged = function(msg)
|
||||
{
|
||||
// Remove current targets, to prevent them from being added twice
|
||||
this.targetUnits = [];
|
||||
|
||||
if (msg.to != -1)
|
||||
this.SetupRangeQuery(msg.to);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue