Codechange: make explicit when a TileIndex is cast to its basetype (#11190)
This prevents people accidentially assigning a TileIndex to a Date or any other type they shouldn't.
This commit is contained in:
@@ -2714,7 +2714,7 @@ static void DoClearTownHouseHelper(TileIndex tile, Town *t, HouseID house)
|
||||
DoClearSquare(tile);
|
||||
DeleteAnimatedTile(tile);
|
||||
|
||||
DeleteNewGRFInspectWindow(GSF_HOUSES, tile);
|
||||
DeleteNewGRFInspectWindow(GSF_HOUSES, static_cast<uint32_t>(tile));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user