diff options
author | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-08-17 06:28:13 +0000 |
---|---|---|
committer | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-08-17 06:28:13 +0000 |
commit | d5b86aa54dfa4ddf5b5f2361918c719ba8d0dd18 (patch) | |
tree | d1eb473d5d703ac37c7ed4cdcfc52e4caca5aa95 /src/net/beinghandler.cpp | |
parent | 68888853bc946a52ca368c5fc859b6709ae0e661 (diff) | |
download | mana-client-d5b86aa54dfa4ddf5b5f2361918c719ba8d0dd18.tar.gz mana-client-d5b86aa54dfa4ddf5b5f2361918c719ba8d0dd18.tar.bz2 mana-client-d5b86aa54dfa4ddf5b5f2361918c719ba8d0dd18.tar.xz mana-client-d5b86aa54dfa4ddf5b5f2361918c719ba8d0dd18.zip |
Fixed crash resulting from having a player targeted when hitting a warp point
Diffstat (limited to 'src/net/beinghandler.cpp')
-rw-r--r-- | src/net/beinghandler.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp index affdcd56..5b2ac5f4 100644 --- a/src/net/beinghandler.cpp +++ b/src/net/beinghandler.cpp @@ -201,10 +201,9 @@ void BeingHandler::handleMessage(MessageIn *msg) if (!dstBeing) break; - if (dstBeing == player_node->getTarget()) - { + // If this is player's current target, clear it. + if (player_node->getTarget() == dstBeing) player_node->stopAttack(); - } if (msg->readInt8() == 1) { |