summaryrefslogtreecommitdiff
path: root/src/net/ea/generalhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-07 21:16:24 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-07 21:23:27 -0600
commit73c773adfb8b65e1305242ab55607882a46e71c3 (patch)
tree5b6d767ce2f44e33283f4e78edbb5a08f0c2b52a /src/net/ea/generalhandler.cpp
parentaefbc69aac9f7c793725153eefce2631555bfd1f (diff)
downloadmana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.gz
mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.bz2
mana-73c773adfb8b65e1305242ab55607882a46e71c3.tar.xz
mana-73c773adfb8b65e1305242ab55607882a46e71c3.zip
Implement TMWServ's PartyHandler
Diffstat (limited to 'src/net/ea/generalhandler.cpp')
-rw-r--r--src/net/ea/generalhandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/ea/generalhandler.cpp b/src/net/ea/generalhandler.cpp
index e0974e63..2dee8d1e 100644
--- a/src/net/ea/generalhandler.cpp
+++ b/src/net/ea/generalhandler.cpp
@@ -141,7 +141,9 @@ void GeneralHandler::unload()
{
mNetwork->clearHandlers();
- delete partyTab;
+ // The party tab might not have been made (if we never loaded the main GUI)
+ if (partyTab)
+ delete partyTab;
}
void GeneralHandler::flushNetwork()