mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Merge pull request #8294 from Robyt3/Server-Voteoption-Alignment
Fix alignment of vote option heap entries with `remove_vote`
This commit is contained in:
commit
cce5514c08
|
@ -3277,7 +3277,7 @@ void CGameContext::ConRemoveVote(IConsole::IResult *pResult, void *pUserData)
|
|||
|
||||
// copy option
|
||||
int Len = str_length(pSrc->m_aCommand);
|
||||
CVoteOptionServer *pDst = (CVoteOptionServer *)pVoteOptionHeap->Allocate(sizeof(CVoteOptionServer) + Len);
|
||||
CVoteOptionServer *pDst = (CVoteOptionServer *)pVoteOptionHeap->Allocate(sizeof(CVoteOptionServer) + Len, alignof(CVoteOptionServer));
|
||||
pDst->m_pNext = 0;
|
||||
pDst->m_pPrev = pVoteOptionLast;
|
||||
if(pDst->m_pPrev)
|
||||
|
|
Loading…
Reference in a new issue