From 94716c19748ab87a0a215f05e15ad6cac1008f07 Mon Sep 17 00:00:00 2001
From: Jared Adams <jaxad0127@gmail.com>
Date: Tue, 12 May 2009 21:21:18 -0600
Subject: Fix a rare segfault for eAthena and the partyTab

---
 src/net/ea/partyhandler.cpp | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src')

diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp
index 2f1b02ab..5e7f43c4 100644
--- a/src/net/ea/partyhandler.cpp
+++ b/src/net/ea/partyhandler.cpp
@@ -156,6 +156,9 @@ void PartyHandler::handleMessage(MessageIn &msg)
             }
         case SMSG_PARTY_SETTINGS:
             {
+                if (!partyTab)
+                    break;
+
                 // These seem to indicate the sharing mode for exp and items
                 short exp = msg.readInt16();
                 short item = msg.readInt16();
-- 
cgit v1.2.3-70-g09d2