From 80f8af40b33b71f04ec71ff12cfbb2a21de61703 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sun, 6 Mar 2011 11:18:47 +0100 Subject: Small fixes coming from my comment on issue #77. Trivial. --- src/game-server/state.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/game-server/state.cpp') 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::iterator iValue = mScriptVariables.find(key); + std::map::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 ; } -- cgit v1.2.3-70-g09d2