Open
Description
Should it have checked m_numTeams < 1
instead?
void TeamsInfoRec::removeTeam(Int i)
{
if (i < 0 || i >= m_numTeams || m_numTeams <= 1) // <---- ???
return;
for ( ; i < m_numTeams-1; i++)
m_teams[i] = m_teams[i+1];
for ( ; i < m_numTeamsAllocated; i++)
m_teams[i].clear();
--m_numTeams;
}
GeneralsGameCode/GeneralsMD/Code/GameEngine/Source/GameLogic/Map/SidesList.cpp
Lines 1156 to 1168 in cac806a