From a2adca7036877bcf33fb4bee4d11300c14fe4921 Mon Sep 17 00:00:00 2001 From: def Date: Thu, 30 Jan 2014 03:37:45 +0100 Subject: [PATCH] Fix: Don't access unlockable teams --- src/game/server/teams.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/server/teams.h b/src/game/server/teams.h index 5ec2065b5..84d0607df 100644 --- a/src/game/server/teams.h +++ b/src/game/server/teams.h @@ -91,6 +91,9 @@ public: ; bool TeamLocked(int Team) { + if (Team <= TEAM_FLOCK || Team >= TEAM_SUPER) + return false; + return m_TeamLocked[Team]; } ;