mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
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:
commit
42e16747a5
|
@ -148,6 +148,9 @@ CVoting::CVoting()
|
|||
|
||||
void CVoting::AddOption(const char *pDescription)
|
||||
{
|
||||
if(m_NumVoteOptions == MAX_VOTE_OPTIONS)
|
||||
return;
|
||||
|
||||
CVoteOptionClient *pOption;
|
||||
if(m_pRecycleFirst)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue