From 8d481d60f50461be637d359ed7ad4cc69fef7500 Mon Sep 17 00:00:00 2001 From: GreYFoXGTi Date: Wed, 27 Oct 2010 11:41:31 +0200 Subject: [PATCH] idk how i forgot this. fixes #111. --- src/game/collision.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/collision.cpp b/src/game/collision.cpp index fb2fc775d..8c05b392a 100644 --- a/src/game/collision.cpp +++ b/src/game/collision.cpp @@ -298,7 +298,7 @@ void CCollision::SetDCollisionAt(float x, float y, int Flag, int Team) int CCollision::GetDTileIndex(int Index,int Team) { - if(!m_pDoor || !m_pDoor[Index].m_Index || ((Team < 0 || Team > (MAX_CLIENTS - 1)) && Team !=99)) + if(!m_pDoor || Index < 0 || !m_pDoor[Index].m_Index || ((Team < 0 || Team > (MAX_CLIENTS - 1)) && Team !=99)) return 0; if(m_pDoor[Index].m_Team[Team])