aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/trinitycore/RASocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trinitycore/RASocket.cpp b/src/trinitycore/RASocket.cpp
index 055cfebada6..a464a83702c 100644
--- a/src/trinitycore/RASocket.cpp
+++ b/src/trinitycore/RASocket.cpp
@@ -170,7 +170,7 @@ void RASocket::OnRead()
//szPass=fields[0].GetString();
///- if gmlevel is too low, deny access
- if(fields[1].GetUInt32()<iMinLevel && fields[1].GetUInt32() != NULL))
+ if(fields[1].GetUInt32()<iMinLevel || fields[1].GetUInt32() == NULL))
{
Sendf("-Not enough privileges.\r\n");
sLog.outRemote("User %s has no privilege.\n",szLogin.c_str());