1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-20 10:52:41 +01:00

Codechange: Use std::byte for generic buffers.

This commit is contained in:
frosch
2025-05-03 17:41:51 +02:00
committed by frosch
parent 02082a0211
commit 518a34c286
4 changed files with 5 additions and 4 deletions

View File

@@ -526,7 +526,7 @@ static void *ReadSprite(const SpriteCache *sc, SpriteID id, SpriteType sprite_ty
s->y_offs = root_sprite.y_offs;
SpriteLoader::CommonPixel *src = root_sprite.data;
uint8_t *dest = s->data;
uint8_t *dest = reinterpret_cast<uint8_t *>(s->data);
while (num-- > 0) {
*dest++ = src->m;
src++;