diff options
Diffstat (limited to 'src/game-server/state.cpp')
-rw-r--r-- | src/game-server/state.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game-server/state.cpp b/src/game-server/state.cpp index 642d5dbe..5cd15881 100644 --- a/src/game-server/state.cpp +++ b/src/game-server/state.cpp @@ -819,13 +819,12 @@ void GameState::sayToAll(const std::string &text) std::string GameState::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 GameState::setVariable(const std::string &key, const std::string &value) @@ -834,7 +833,8 @@ void GameState::setVariable(const std::string &key, const std::string &value) accountHandler->updateWorldVar(key, value); } -void GameState::setVariableFromDbserver(const std::string &key, const std::string &value) +void GameState::setVariableFromDbserver(const std::string &key, + const std::string &value) { mScriptVariables[key] = value ; } |