aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-16 22:54:50 -0600
committermegamage <none@none>2009-01-16 22:54:50 -0600
commit660263ed1bbe1ce8d085e591c2947ca0bb2e76ce (patch)
tree191a2fe8bce830295d478beaaf8d7035df2c3d87
parentf017b964adbce89b7f898beb39b19b55ffa9a5dd (diff)
*Fix a typo that causes crash. Do not use 867!
--HG-- branch : trunk
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 28a34dd7dea..370a94bd93f 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -10411,7 +10411,7 @@ bool Unit::SelectHostilTarget()
}
// search nearby enemy before enter evade mode
- if(((Creature*)target)->HasReactState(REACT_AGGRESSIVE))
+ if(((Creature*)this)->HasReactState(REACT_AGGRESSIVE))
{
if(Unit *target = ((Creature*)this)->SelectNearestTarget())
{