[-] Fixed order saving for autocast
This commit is contained in:
parent
46dc4049b6
commit
b78e366639
1 changed files with 1 additions and 3 deletions
|
@ -411,9 +411,7 @@ int AutoCastSpell(CUnit &caster, const SpellType &spell)
|
|||
} else {
|
||||
// Save previous order
|
||||
COrder *savedOrder = NULL;
|
||||
if (caster.CurrentAction() == UnitActionStill) {
|
||||
savedOrder = COrder::NewActionAttack(caster, caster.tilePos);
|
||||
} else if (caster.CanStoreOrder(caster.CurrentOrder())) {
|
||||
if (caster.CurrentAction() != UnitActionStill && caster.CanStoreOrder(caster.CurrentOrder())) {
|
||||
savedOrder = caster.CurrentOrder()->Clone();
|
||||
}
|
||||
// Must move before ?
|
||||
|
|
Loading…
Add table
Reference in a new issue