forked from 0ad/0ad
Remove current targets when changing ownership. Fixes #1794.
This was SVN commit r13014.
This commit is contained in:
parent
61734c48d4
commit
18b532a195
@ -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 New Issue
Block a user