Skip to content

Commit

Permalink
[c12669] Add some safety to rare case of target-selection for unreach…
Browse files Browse the repository at this point in the history
…able target

Thanks to Atari for reporting and researching this problem

(based on commit [12478] - ae2a837)
  • Loading branch information
Schmoozerd authored and Dramacydal committed Aug 19, 2013
1 parent cbd060a commit afd436c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/game/Unit.cpp
Expand Up @@ -9380,8 +9380,8 @@ bool Unit::SelectHostileTarget()
// next iteration we will select next possible target
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;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12668"
#define REVISION_NR "12669"
#endif // __REVISION_NR_H__

0 comments on commit afd436c

Please sign in to comment.