mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed a warning
This commit is contained in:
parent
50edfd37c0
commit
370b93d8e1
|
@ -1587,7 +1587,7 @@ void CServer::ConchainModCommandUpdate(IConsole::IResult *pResult, void *pUserDa
|
|||
{
|
||||
CServer *pThis = static_cast<CServer *>(pUserData);
|
||||
const IConsole::CCommandInfo *pInfo = pThis->Console()->GetCommandInfo(pResult->GetString(0), CFGFLAG_SERVER, false);
|
||||
int OldAccessLevel;
|
||||
int OldAccessLevel = 0;
|
||||
if(pInfo)
|
||||
OldAccessLevel = pInfo->GetAccessLevel();
|
||||
pfnCallback(pResult, pCallbackUserData);
|
||||
|
|
Loading…
Reference in a new issue