fixed a warning

This commit is contained in:
SushiTee 2011-08-01 12:11:10 +02:00
parent 50edfd37c0
commit 370b93d8e1

View file

@ -1587,7 +1587,7 @@ void CServer::ConchainModCommandUpdate(IConsole::IResult *pResult, void *pUserDa
{ {
CServer *pThis = static_cast<CServer *>(pUserData); CServer *pThis = static_cast<CServer *>(pUserData);
const IConsole::CCommandInfo *pInfo = pThis->Console()->GetCommandInfo(pResult->GetString(0), CFGFLAG_SERVER, false); const IConsole::CCommandInfo *pInfo = pThis->Console()->GetCommandInfo(pResult->GetString(0), CFGFLAG_SERVER, false);
int OldAccessLevel; int OldAccessLevel = 0;
if(pInfo) if(pInfo)
OldAccessLevel = pInfo->GetAccessLevel(); OldAccessLevel = pInfo->GetAccessLevel();
pfnCallback(pResult, pCallbackUserData); pfnCallback(pResult, pCallbackUserData);