mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: Don't crash when using sv_old_teleport_hook and new teleports
This commit is contained in:
parent
64d7b6a117
commit
22ce12a9cc
|
@ -323,7 +323,7 @@ void CCharacterCore::Tick(bool UseInput)
|
||||||
m_HookState = HOOK_RETRACT_START;
|
m_HookState = HOOK_RETRACT_START;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(GoingThroughTele && m_pTeleOuts[teleNr-1].size())
|
if(GoingThroughTele && m_pTeleOuts.size() && m_pTeleOuts[teleNr-1].size())
|
||||||
{
|
{
|
||||||
m_TriggeredEvents = 0;
|
m_TriggeredEvents = 0;
|
||||||
m_HookedPlayer = -1;
|
m_HookedPlayer = -1;
|
||||||
|
|
Loading…
Reference in a new issue