Ticket #4523: fix4523.patch

File fix4523.patch, 673 bytes (added by mimo, 7 years ago)
  • binaries/data/mods/public/simulation/components/UnitAI.js

     
    49484948    if (this.expectedRoute)
    49494949        this.expectedRoute = undefined;
    49504950
     4951    // May happen only if an order arrives on the same turn the unit is garrisoned
     4952    // in that case, just forget the order as this will lead to a weird state
     4953    if (this.IsGarrisoned() && !this.IsTurret() && type != "Ungarrison")
     4954        return;
     4955
    49514956    if (queued)
    49524957        this.PushOrder(type, data);
    49534958    else