Fixed warning: src/game/server/ddracechat.cpp:267: unused variable 'pSelf'

This commit is contained in:
GreYFoX 2011-09-01 00:30:37 +02:00
parent dd3568338f
commit f845f271ad

View file

@ -264,12 +264,11 @@ void CGameContext::ConTop5(IConsole::IResult *pResult, void *pUserData)
#if defined(CONF_SQL)
void CGameContext::ConTimes(IConsole::IResult *pResult, void *pUserData)
{
CGameContext *pSelf = (CGameContext *)pUserData;
if(!CheckClientID(pResult->m_ClientID)) return;
CGameContext *pSelf = (CGameContext *)pUserData;
if(g_Config.m_SvUseSQL)
{
CGameContext *pSelf = (CGameContext *)pUserData;
CSqlScore *pScore = (CSqlScore *)pSelf->Score();
CPlayer *pPlayer = pSelf->m_apPlayers[pResult->m_ClientID];
if(!pPlayer)