From 0485bd935b235e1162332ca145e7fbb6e5aecb3b Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 14 Jan 2010 14:11:27 +0000 Subject: Made EntityList able to handle several files with same macroname and version number, without corrupting the internal data structure (switched from map to multimap). --- server/src/entitylist.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/src/entitylist.cc') 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++; -- cgit v1.2.3