diff options
author | Trazom62 <none@none> | 2010-03-13 12:51:37 +0100 |
---|---|---|
committer | Trazom62 <none@none> | 2010-03-13 12:51:37 +0100 |
commit | 76afec204d7bbffd21c1a148cd7137c23c033573 (patch) | |
tree | a7133fb31b3f8936d836f6a14cc73ab23d9d6191 /src | |
parent | 75a63297ca5758670b6dc1717d2632c204f57d52 (diff) |
Yet another crash fix due to invalid cast.
Fixes issue #1079.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/MotionMaster.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/MotionMaster.cpp b/src/game/MotionMaster.cpp index 70c62d67741..fbde38a19cd 100644 --- a/src/game/MotionMaster.cpp +++ b/src/game/MotionMaster.cpp @@ -269,7 +269,7 @@ MotionMaster::MoveFollow(Unit* target, float dist, float angle, MovementSlot slo { DEBUG_LOG("Player (GUID: %u) follow to %s (GUID: %u)", i_owner->GetGUIDLow(), target->GetTypeId() == TYPEID_PLAYER ? "player" : "creature", - target->GetTypeId() == TYPEID_PLAYER ? i_owner->GetGUIDLow() : i_owner->ToCreature()->GetDBTableGUIDLow()); + target->GetTypeId() == TYPEID_PLAYER ? target->GetGUIDLow() : target->ToCreature()->GetDBTableGUIDLow()); Mutate(new TargetedMovementGenerator<Player>(*target,dist,angle), slot); } else |