summaryrefslogtreecommitdiff
path: root/src/party.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/party.cpp')
-rw-r--r--src/party.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/party.cpp b/src/party.cpp
index 9f0541224..e3ea497ac 100644
--- a/src/party.cpp
+++ b/src/party.cpp
@@ -284,8 +284,9 @@ Party *Party::getParty(short id)
PartyMap::iterator it = parties.find(id);
if (it != parties.end())
return it->second;
-
- return new Party(id);
+ Party *party = new Party(id);
+ parties[id] = party;
+ return party;
}
void Party::sort()