mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #2033 from def-/pr-fix-crash
Fix crash on pDDNetCharacter
This commit is contained in:
commit
dcd8148d9a
|
@ -1152,6 +1152,9 @@ void CCharacter::Snap(int SnappingClient)
|
|||
pCharacter->m_PlayerFlags = GetPlayer()->m_PlayerFlags;
|
||||
|
||||
CNetObj_DDNetCharacter *pDDNetCharacter = static_cast<CNetObj_DDNetCharacter *>(Server()->SnapNewItem(NETOBJTYPE_DDNETCHARACTER, id, sizeof(CNetObj_DDNetCharacter)));
|
||||
if(!pDDNetCharacter)
|
||||
return;
|
||||
|
||||
pDDNetCharacter->m_Flags = 0;
|
||||
if(m_Solo)
|
||||
pDDNetCharacter->m_Flags |= CHARACTERFLAG_SOLO;
|
||||
|
|
Loading…
Reference in a new issue