aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r--src/game/Level3.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index 8489b299d8f..82b80548d03 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -6997,13 +6997,13 @@ bool ChatHandler::HandleAccountSetAddonCommand(const char* args)
HasLowerSecurityAccount (NULL,account_id,true))
return false;
- int lev=atoi(szExp); //get int anyway (0 if error)
- if(lev < 0 || lev > sWorld.getConfig(CONFIG_EXPANSION))
- return false;
+ int expansion = atoi(szExp); //get int anyway (0 if error)
+ if(expansion < 0 || expansion > sWorld.getConfig(CONFIG_EXPANSION))
+ return false;
// No SQL injection
- loginDatabase.PExecute("UPDATE account SET expansion = '%d' WHERE id = '%u'",lev,account_id);
- PSendSysMessage(LANG_ACCOUNT_SETADDON,account_name.c_str(),account_id,lev);
+ loginDatabase.PExecute("UPDATE account SET expansion = '%d' WHERE id = '%u'",expansion,account_id);
+ PSendSysMessage(LANG_ACCOUNT_SETADDON,account_name.c_str(),account_id,expansion);
return true;
}