mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Convert most remaining C-style casts to C++-style ones (#11867)
This commit is contained in:
committed by
GitHub
parent
7646f1b7e4
commit
9ef8d6da42
@@ -64,7 +64,7 @@ void ImageTable::Read(IReadObjectContext* context, IStream* stream)
|
||||
rct_g1_element g1Element;
|
||||
|
||||
uintptr_t imageDataOffset = static_cast<uintptr_t>(stream->ReadValue<uint32_t>());
|
||||
g1Element.offset = (uint8_t*)(imageDataBase + imageDataOffset);
|
||||
g1Element.offset = reinterpret_cast<uint8_t*>(imageDataBase + imageDataOffset);
|
||||
|
||||
g1Element.width = stream->ReadValue<int16_t>();
|
||||
g1Element.height = stream->ReadValue<int16_t>();
|
||||
|
||||
Reference in New Issue
Block a user