diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/config-manager.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common/config-manager.cpp b/common/config-manager.cpp index a5d7647289..db17b7e296 100644 --- a/common/config-manager.cpp +++ b/common/config-manager.cpp @@ -501,7 +501,12 @@ void ConfigManager::renameGameDomain(const String &oldName, const String &newNam assert(isValidDomainName(oldName)); assert(isValidDomainName(newName)); - _gameDomains[newName].merge(_gameDomains[oldName]); +// _gameDomains[newName].merge(_gameDomains[oldName]); + Domain &oldDom(_gameDomains[oldName]); + Domain &newDom(_gameDomains[newName]); + Domain::const_iterator iter; + for (iter = oldDom.begin(); iter != oldDom.end(); ++iter) + newDom[iter->_key] = iter->_value; _gameDomains.erase(oldName); } |