diff options
Diffstat (limited to 'src/game-server/mapcomposite.cpp')
-rw-r--r-- | src/game-server/mapcomposite.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game-server/mapcomposite.cpp b/src/game-server/mapcomposite.cpp index 451147f7..56c983f3 100644 --- a/src/game-server/mapcomposite.cpp +++ b/src/game-server/mapcomposite.cpp @@ -598,22 +598,22 @@ const std::vector< Thing * > &MapComposite::getEverything() const std::string MapComposite::getVariable(const std::string &key) { - std::map<std::string, std::string>::iterator iValue = mScriptVariables.find(key); + std::map<std::string, std::string>::iterator iValue = + mScriptVariables.find(key); if (iValue != mScriptVariables.end()) - { return iValue->second; - } else { + else return std::string(); - } } void MapComposite::setVariable(const std::string &key, const std::string &value) { // check if the value actually changed - std::map<std::string, std::string>::iterator iOldValue = mScriptVariables.find(key); + std::map<std::string, std::string>::iterator iOldValue = + mScriptVariables.find(key); if (iOldValue == mScriptVariables.end() || iOldValue->second != value) { - // changed valu or unknown variable + // changed value or unknown variable mScriptVariables[key] = value; // update accountserver accountHandler->updateMapVar(this, key, value); |