mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Fix: Don't access unlockable teams
This commit is contained in:
parent
69df267bb1
commit
a2adca7036
|
@ -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];
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue