From f845f271ad7d7f8d680268075053ce89243f90a1 Mon Sep 17 00:00:00 2001 From: GreYFoX Date: Thu, 1 Sep 2011 00:30:37 +0200 Subject: [PATCH] Fixed warning: src/game/server/ddracechat.cpp:267: unused variable 'pSelf' --- src/game/server/ddracechat.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game/server/ddracechat.cpp b/src/game/server/ddracechat.cpp index d8711d11a..0be1ef134 100644 --- a/src/game/server/ddracechat.cpp +++ b/src/game/server/ddracechat.cpp @@ -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)