Merge pull request #6972 from Robyt3/Client-Vote-Option-Crash-Fix

Fix client crash with more than `MAX_VOTE_OPTIONS` vote options
This commit is contained in:
Dennis Felsing 2023-08-06 16:36:17 +00:00 committed by GitHub
commit 42e16747a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,6 +148,9 @@ CVoting::CVoting()
void CVoting::AddOption(const char *pDescription)
{
if(m_NumVoteOptions == MAX_VOTE_OPTIONS)
return;
CVoteOptionClient *pOption;
if(m_pRecycleFirst)
{