forked from 0ad/0ad
prevent weird behaviour when the ship in which we want to garrison is selected with the units to garrison
This was SVN commit r15142.
This commit is contained in:
parent
b2ec4e0e2a
commit
fb2cda5aba
@ -4903,6 +4903,8 @@ UnitAI.prototype.Attack = function(target, queued)
|
||||
*/
|
||||
UnitAI.prototype.Garrison = function(target, queued)
|
||||
{
|
||||
if (target == this.entity)
|
||||
return;
|
||||
if (!this.CanGarrison(target))
|
||||
{
|
||||
this.WalkToTarget(target, queued);
|
||||
|
Loading…
Reference in New Issue
Block a user