(svn r9841) -Codechange: add a little more type strictness to the vehicle types.

This commit is contained in:
rubidium
2007-05-15 11:28:22 +00:00
parent a390db6941
commit 23492f1f34
7 changed files with 15 additions and 6 deletions

View File

@@ -365,6 +365,7 @@ void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player)
case VEH_ROAD: v->unitnumber = ++num_road; break;
case VEH_SHIP: v->unitnumber = ++num_ship; break;
case VEH_AIRCRAFT: if (IsNormalAircraft(v)) v->unitnumber = ++num_aircraft; break;
default: NOT_REACHED();
}
}
}