diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-15 20:23:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-15 20:23:29 +0300 |
commit | 8e565222e9d66065c524645d02af2ff7e74ade6a (patch) | |
tree | 1834395eefee23d3b5a2f3b525a1a82894e3c305 | |
parent | 62651de51245ed7377bfdbf3212ac99321c3547f (diff) | |
download | plus-8e565222e9d66065c524645d02af2ff7e74ade6a.tar.gz plus-8e565222e9d66065c524645d02af2ff7e74ade6a.tar.bz2 plus-8e565222e9d66065c524645d02af2ff7e74ade6a.tar.xz plus-8e565222e9d66065c524645d02af2ff7e74ade6a.zip |
Add missing check.
-rw-r--r-- | src/net/tmwa/beinghandler.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index 9e3cdefb8..adf49a734 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -1181,9 +1181,12 @@ void BeingHandler::handleMessage(Net::MessageIn &msg) int id = msg.readInt32(); // id int rank = msg.readInt32(); // rank msg.readInt32(); // num - dstBeing = actorSpriteManager->findBeing(id); - if (dstBeing) - dstBeing->setPvpRank(rank); + if (actorSpriteManager) + { + dstBeing = actorSpriteManager->findBeing(id); + if (dstBeing) + dstBeing->setPvpRank(rank); + } break; } |