diff options
Diffstat (limited to 'src/game/Level0.cpp')
-rw-r--r-- | src/game/Level0.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Level0.cpp b/src/game/Level0.cpp index 95e35475cc1..3bdfaf1ba3d 100644 --- a/src/game/Level0.cpp +++ b/src/game/Level0.cpp @@ -244,7 +244,7 @@ bool ChatHandler::HandleAccountAddonCommand(const char* args) uint32 account_id = m_session->GetAccountId(); 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 |