mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
Use named casts instead of old-style casts
Change prepared with clang-tidy and google-readability-casting check
This commit is contained in:
committed by
GitHub
parent
cfd94d4fa5
commit
2323cc1596
@@ -110,8 +110,8 @@ void WaterObject::ReadJsonPalette(const json_t* jPalette)
|
||||
|
||||
rct_g1_element g1 = {};
|
||||
g1.offset = data.get();
|
||||
g1.width = (int16_t)numColours;
|
||||
g1.x_offset = (int16_t)paletteStartIndex;
|
||||
g1.width = static_cast<int16_t>(numColours);
|
||||
g1.x_offset = static_cast<int16_t>(paletteStartIndex);
|
||||
g1.flags = G1_FLAG_PALETTE;
|
||||
|
||||
auto& imageTable = GetImageTable();
|
||||
|
||||
Reference in New Issue
Block a user