summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-15 20:23:29 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-15 20:23:29 +0300
commit8e565222e9d66065c524645d02af2ff7e74ade6a (patch)
tree1834395eefee23d3b5a2f3b525a1a82894e3c305 /src
parent62651de51245ed7377bfdbf3212ac99321c3547f (diff)
downloadmv-8e565222e9d66065c524645d02af2ff7e74ade6a.tar.gz
mv-8e565222e9d66065c524645d02af2ff7e74ade6a.tar.bz2
mv-8e565222e9d66065c524645d02af2ff7e74ade6a.tar.xz
mv-8e565222e9d66065c524645d02af2ff7e74ade6a.zip
Add missing check.
Diffstat (limited to 'src')
-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;
}