Fix: Don't access unlockable teams

This commit is contained in:
def 2014-01-30 03:37:45 +01:00
parent 69df267bb1
commit a2adca7036

View file

@ -91,6 +91,9 @@ public:
; ;
bool TeamLocked(int Team) bool TeamLocked(int Team)
{ {
if (Team <= TEAM_FLOCK || Team >= TEAM_SUPER)
return false;
return m_TeamLocked[Team]; return m_TeamLocked[Team];
} }
; ;