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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index c2e7857fcfe..8489b299d8f 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -6998,7 +6998,7 @@ bool ChatHandler::HandleAccountSetAddonCommand(const char* args)
return false;
int lev=atoi(szExp); //get int anyway (0 if error)
- if(lev < 0)
+ if(lev < 0 || lev > sWorld.getConfig(CONFIG_EXPANSION))
return false;
// No SQL injection