void ScriptConfig::ResetChangeableSettings() { if (this->info == NULL) return; for (SettingValueList::iterator it = this->settings.begin(); it != this->settings.end(); it++) { const ScriptConfigItem *config_item = this->info->GetConfigItem((*it).first); assert(config_item != NULL); if (((*config_item).flags & SCRIPTCONFIG_INGAME) == 0) { free((*it).first); this->settings.erase(it); } } // this->settings.clear(); }