summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-04-11 18:39:58 -0600
committerJared Adams <jaxad0127@gmail.com>2010-04-11 20:36:03 -0600
commitf30f3e6a51fc20bded8a3a04cd3a0f328a064469 (patch)
tree81293200eedc9784f37f6ea3f001be6086578e16 /src/net/ea
parent9d94337026bbe6236bc4a39143c839a3bb386326 (diff)
downloadmana-f30f3e6a51fc20bded8a3a04cd3a0f328a064469.tar.gz
mana-f30f3e6a51fc20bded8a3a04cd3a0f328a064469.tar.bz2
mana-f30f3e6a51fc20bded8a3a04cd3a0f328a064469.tar.xz
mana-f30f3e6a51fc20bded8a3a04cd3a0f328a064469.zip
Fix one crash when switching servers
Reviewed-by: Freeyorp
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/beinghandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 90831e9f..714150f7 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -95,6 +95,9 @@ Being *createBeing(int id, short job)
void BeingHandler::handleMessage(Net::MessageIn &msg)
{
+ if (!beingManager)
+ return;
+
int id;
short job, speed, gender;
Uint16 headTop, headMid, headBottom;
@@ -115,9 +118,6 @@ void BeingHandler::handleMessage(Net::MessageIn &msg)
{
case SMSG_BEING_VISIBLE:
case SMSG_BEING_MOVE:
- if (!beingManager)
- return;
-
// Information about a being in range
id = msg.readInt32();
speed = msg.readInt16();