mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-22 23:58:48 -05:00
Make event_manager.h build on MSVC
This commit is contained in:
parent
c8997e48c0
commit
04085cad3c
@ -77,26 +77,26 @@ public:
|
||||
std::map<std::string, Dest>::iterator i = m_dest.find(type);
|
||||
if(i != m_dest.end()){
|
||||
std::list<FuncSpec> &funcs = i->second.funcs;
|
||||
std::list<FuncSpec>::iterator i = funcs.begin();
|
||||
while(i != funcs.end()){
|
||||
bool remove = (i->f == f && (!data || i->d == data));
|
||||
std::list<FuncSpec>::iterator j = funcs.begin();
|
||||
while(j != funcs.end()){
|
||||
bool remove = (j->f == f && (!data || j->d == data));
|
||||
if(remove)
|
||||
funcs.erase(i++);
|
||||
funcs.erase(j++);
|
||||
else
|
||||
i++;
|
||||
j++;
|
||||
}
|
||||
}
|
||||
} else{
|
||||
for(std::map<std::string, Dest>::iterator
|
||||
i = m_dest.begin(); i != m_dest.end(); i++){
|
||||
std::list<FuncSpec> &funcs = i->second.funcs;
|
||||
std::list<FuncSpec>::iterator i = funcs.begin();
|
||||
while(i != funcs.end()){
|
||||
bool remove = (i->f == f && (!data || i->d == data));
|
||||
std::list<FuncSpec>::iterator j = funcs.begin();
|
||||
while(j != funcs.end()){
|
||||
bool remove = (j->f == f && (!data || j->d == data));
|
||||
if(remove)
|
||||
funcs.erase(i++);
|
||||
funcs.erase(j++);
|
||||
else
|
||||
i++;
|
||||
j++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user