diff options
Diffstat (limited to 'server/src/entitylist.cc')
-rw-r--r-- | server/src/entitylist.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/entitylist.cc b/server/src/entitylist.cc index 64bd49d..b84df61 100644 --- a/server/src/entitylist.cc +++ b/server/src/entitylist.cc @@ -139,8 +139,8 @@ bool EntityList::removeFile(std::string file) while(j != i->second.end()) { if(file == j->second) { PRACRO_DEBUG(entitylist, "Removing file: %s\n", file.c_str()); - i->second.erase(j->first); - if(i->second.size() == 0) erase(i->first); + i->second.erase(j); + if(i->second.size() == 0) erase(i); return true; } j++; |