diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp index 8a9c93c0e..a047a8194 100644 --- a/src/game/server/entities/character.cpp +++ b/src/game/server/entities/character.cpp @@ -933,7 +933,7 @@ void CCharacter::Tick() m_Core.m_TriggeredEvents |= COREEVENT_HOOK_RETRACT; m_Core.m_HookState = HOOK_RETRACTED; GameWorld()->ReleaseHooked(GetPlayer()->GetCID()); - int Num = (((CGameControllerDDRace*)GameServer()->m_pController)->m_pNumTele[z-1] - 1); + int Num = (((CGameControllerDDRace*)GameServer()->m_pController)->m_pNumTele[evilz-1] - 1); m_Core.m_Pos = ((CGameControllerDDRace*)GameServer()->m_pController)->m_pTele2D[evilz-1][(!Num)?Num:rand() % Num]; m_Core.m_HookPos = m_Core.m_Pos; m_Core.m_Vel = vec2(0,0);