Range-based for for world/adventure_manager.cpp

This commit is contained in:
Michael Cook (mackal) 2015-01-08 22:01:02 -05:00
parent 784a6974d1
commit 4f643c7201

View File

@ -30,9 +30,8 @@ AdventureManager::~AdventureManager()
safe_delete(save_timer);
safe_delete(leaderboard_info_timer);
for (auto iter = adventure_templates.begin(); iter != adventure_templates.end(); ++iter) {
delete iter->second;
}
for (auto &elem : adventure_templates)
delete elem.second;
}
void AdventureManager::Process()