From 0e207fba6f2172071e15ad997103e71a03e81eef Mon Sep 17 00:00:00 2001 From: oy Date: Sat, 26 Mar 2011 16:24:12 +0100 Subject: fixed problem with force_vote command --- src/game/server/gamecontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 476bd20a..8b492ec0 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -1085,7 +1085,7 @@ void CGameContext::ConForceVote(IConsole::IResult *pResult, void *pUserData) CGameContext *pSelf = (CGameContext *)pUserData; const char *pType = pResult->GetString(0); const char *pValue = pResult->GetString(1); - const char *pReason = pResult->GetString(2)[0] ? pResult->GetString(2) : "No reason given"; + const char *pReason = pResult->NumArguments() > 2 && pResult->GetString(2)[0] ? pResult->GetString(2) : "No reason given"; char aBuf[128] = {0}; if(str_comp_nocase(pType, "option") == 0) -- cgit 1.4.1