private void RemapSquad(Dictionary<int,SquadRoster> squadTable, SquadRoster squad)
{
int emptyId = 1;
while (squadTable.ContainsKey(emptyId)) {
emptyId = emptyId + 1;
if (emptyId > (SQUAD_NAMES.Length - 1)) {
if (DebugLevel >= 8) ConsoleDebug("RemapSquad: ran out of empty squads!");
return;
}
}
squad.Squad = emptyId;
}