diff options
-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; } |