Set m_VoteCreator when using force_vote

This commit is contained in:
furo 2024-08-27 21:44:00 +02:00
parent 9fbbf5cde7
commit f407adc61c

View file

@ -3396,6 +3396,7 @@ void CGameContext::ConForceVote(IConsole::IResult *pResult, void *pUserData)
{
str_format(aBuf, sizeof(aBuf), "authorized player forced server option '%s' (%s)", pValue, pReason);
pSelf->SendChatTarget(-1, aBuf, FLAG_SIX);
pSelf->m_VoteCreator = pResult->m_ClientId;
pSelf->Console()->ExecuteLine(pOption->m_aCommand);
break;
}