Fixed TeamCount_NextTeam affecting inactive teams (the spawn-in-enemy-base bug)