From 660263ed1bbe1ce8d085e591c2947ca0bb2e76ce Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 16 Jan 2009 22:54:50 -0600 Subject: *Fix a typo that causes crash. Do not use 867! --HG-- branch : trunk --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()) { -- cgit v1.2.3