summaryrefslogtreecommitdiff
path: root/src/account-server/accounthandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/account-server/accounthandler.cpp')
-rw-r--r--src/account-server/accounthandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp
index cca17be9..a0369201 100644
--- a/src/account-server/accounthandler.cpp
+++ b/src/account-server/accounthandler.cpp
@@ -195,7 +195,8 @@ static void handleLoginMessage(AccountClient &computer, MessageIn &msg)
return;
}
- if (accountHandler->getClientNumber() >= (unsigned)Configuration::getValue("net_maxClients", 1000) )
+ unsigned maxClients = (unsigned)Configuration::getValue("net_maxClients", 1000);
+ if (accountHandler->getClientNumber() >= maxClients)
{
reply.writeByte(ERRMSG_SERVER_FULL);
computer.send(reply);