[12685] Add some safety to rare case of target-selection for unreachable

target
Thanks to Atari for reporting and researching this problem
This commit is contained in:
sanctum32 2013-10-11 19:55:04 +03:00 committed by Antz
parent c6ae586f4a
commit 49bcd5a4ad
2 changed files with 3 additions and 2 deletions

View file

@ -9389,7 +9389,8 @@ bool Unit::SelectHostileTarget()
m_HostileRefManager.deleteReference(target);
m_ThreatManager.modifyThreatPercent(target, -101);
_removeAttacker(target);
// remove target from current attacker, do not exit combat settings
AttackStop(true);
}
return false;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12684"
#define REVISION_NR "12685"
#endif // __REVISION_NR_H__