diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-09 23:05:28 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-09 23:05:28 +0200 |
commit | 4893acb9cdbd83349f88668ca932f7fddd3e8288 (patch) | |
tree | d4d8bca192d36d5f95d1d6a583c8af991daabf19 /src/net/ea/generalhandler.cpp | |
parent | c8d5b5596acc1f6e93e8cc6df3e6c92bf6cc4bd8 (diff) | |
download | mana-4893acb9cdbd83349f88668ca932f7fddd3e8288.tar.gz mana-4893acb9cdbd83349f88668ca932f7fddd3e8288.tar.bz2 mana-4893acb9cdbd83349f88668ca932f7fddd3e8288.tar.xz mana-4893acb9cdbd83349f88668ca932f7fddd3e8288.zip |
Some random cleanups
Diffstat (limited to 'src/net/ea/generalhandler.cpp')
-rw-r--r-- | src/net/ea/generalhandler.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/net/ea/generalhandler.cpp b/src/net/ea/generalhandler.cpp index 2dee8d1e..91406278 100644 --- a/src/net/ea/generalhandler.cpp +++ b/src/net/ea/generalhandler.cpp @@ -140,10 +140,7 @@ void GeneralHandler::load() void GeneralHandler::unload() { mNetwork->clearHandlers(); - - // The party tab might not have been made (if we never loaded the main GUI) - if (partyTab) - delete partyTab; + delete partyTab; } void GeneralHandler::flushNetwork() @@ -159,7 +156,7 @@ bool GeneralHandler::isNetworkConnected() void GeneralHandler::guiWindowsLoaded() { - partyTab = new PartyTab(); + partyTab = new PartyTab; } } // namespace EAthena |