diff --git a/src/map_func.h b/src/map_func.h --- a/src/map_func.h +++ b/src/map_func.h @@ -426,7 +426,7 @@ debug_inline static TileIndex TileVirtXY */ debug_inline static uint TileX(TileIndex tile) { - return tile.value & Map::MaxX(); + return static_cast(tile) & Map::MaxX(); } /** @@ -436,7 +436,7 @@ debug_inline static uint TileX(TileIndex */ debug_inline static uint TileY(TileIndex tile) { - return tile.value >> Map::LogX(); + return static_cast(tile) >> Map::LogX(); } /**