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:
mimo 2014-05-10 22:21:24 +00:00
parent b2ec4e0e2a
commit fb2cda5aba

View File

@ -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);