summaryrefslogtreecommitdiff
path: root/src/net/tmwa/partyhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-09 16:27:31 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-09 16:27:31 +0300
commitc06debb4683c784f35093af8fc08ca142a58f5de (patch)
tree8073c846715379d7ee388b88a0cac33e6512df42 /src/net/tmwa/partyhandler.cpp
parentc8a5af485ef256446c761409c9947a6ca521bc25 (diff)
downloadmanaverse-c06debb4683c784f35093af8fc08ca142a58f5de.tar.gz
manaverse-c06debb4683c784f35093af8fc08ca142a58f5de.tar.bz2
manaverse-c06debb4683c784f35093af8fc08ca142a58f5de.tar.xz
manaverse-c06debb4683c784f35093af8fc08ca142a58f5de.zip
Fix for party memory leak and crash.
Diffstat (limited to 'src/net/tmwa/partyhandler.cpp')
-rw-r--r--src/net/tmwa/partyhandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/tmwa/partyhandler.cpp b/src/net/tmwa/partyhandler.cpp
index f8e1e4de8..1526100f6 100644
--- a/src/net/tmwa/partyhandler.cpp
+++ b/src/net/tmwa/partyhandler.cpp
@@ -575,4 +575,9 @@ void PartyHandler::reload()
taParty = Party::getParty(1);
}
+void PartyHandler::clear()
+{
+ taParty = 0;
+}
+
} // namespace TmwAthena