diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/party.cpp | 5 |
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() |