From f30f3e6a51fc20bded8a3a04cd3a0f328a064469 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 11 Apr 2010 18:39:58 -0600 Subject: Fix one crash when switching servers Reviewed-by: Freeyorp --- src/net/ea/beinghandler.cpp | 6 +++--- 1 file 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(); -- cgit v1.2.3-70-g09d2