summaryrefslogtreecommitdiff
path: root/src/net/tmwa/beinghandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/beinghandler.cpp')
-rw-r--r--src/net/tmwa/beinghandler.cpp9
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;
}