From 8e565222e9d66065c524645d02af2ff7e74ade6a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 15 Apr 2011 20:23:29 +0300 Subject: Add missing check. --- src/net/tmwa/beinghandler.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/net/tmwa') 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; } -- cgit v1.2.3-70-g09d2