Loading

Paste #pa7nscczm

  1. void ScriptConfig::ResetChangeableSettings()
  2. {
  3.     if (this->info == NULL) return;
  4.  
  5.     for (SettingValueList::iterator it = this->settings.begin(); it != this->settings.end(); it++) {
  6.         const ScriptConfigItem *config_item = this->info->GetConfigItem((*it).first);
  7.         assert(config_item != NULL);
  8.         if (((*config_item).flags & SCRIPTCONFIG_INGAME) == 0) {
  9.             free((*it).first);
  10.             this->settings.erase(it);
  11.         }
  12.     }
  13. //  this->settings.clear();
  14. }

Comments