mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Fix double free or corruption
crash with hot_reload
This commit is contained in:
parent
3a2cecb8b4
commit
9a7bc70f76
|
@ -120,7 +120,7 @@ bool CCharacter::Spawn(CPlayer *pPlayer, vec2 Pos)
|
|||
if(GameServer()->m_apSavedTees[m_pPlayer->GetCid()])
|
||||
{
|
||||
GameServer()->m_apSavedTees[m_pPlayer->GetCid()]->Load(m_pPlayer->GetCharacter(), Team);
|
||||
delete GameServer()->m_apSavedTees[Team];
|
||||
delete GameServer()->m_apSavedTees[m_pPlayer->GetCid()];
|
||||
GameServer()->m_apSavedTees[m_pPlayer->GetCid()] = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue