Fix: Don't crash when using sv_old_teleport_hook and new teleports

This commit is contained in:
def 2013-10-26 08:02:45 +02:00
parent 64d7b6a117
commit 22ce12a9cc

View file

@ -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;