inline void Actions::clearMap(ActionUseMap& map) { ActionUseMap::iterator it = map.begin(); while(it != map.end()) { delete it->second; map.erase(it); it = map.begin(); } }
inline void Actions::clearMap(ActionUseMap& map) { for(ActionUseMap::iterator it = map.begin(); it != map.end(); ++it) delete it->second; map.clear(); }
void Actions::clearMap(ActionUseMap& map, bool fromLua) { for (auto it = map.begin(); it != map.end(); ) { if (fromLua == it->second.fromLua) { it = map.erase(it); } else { ++it; } } }