[nostalgia/gfx] Fix compiler warning
Some checks failed
Build / build (push) Failing after 24s

This commit is contained in:
2025-07-29 00:30:17 -05:00
parent e61d4647b5
commit fd610454d6

View File

@@ -220,8 +220,9 @@ ox::Error loadSpriteTileSheet(
bool const loadDefaultPalette) noexcept {
for (size_t i{}; i < ts.pixels.size(); i += 2) {
MEM_SPRITE_TILES[i >> 1] =
static_cast<uint16_t>(ts.pixels[i]) |
(static_cast<uint16_t>(ts.pixels[i + 1]) << 8);
static_cast<uint16_t>(
ts.pixels[i] |
(static_cast<uint16_t>(ts.pixels[i + 1]) << 8));
}
if (loadDefaultPalette && ts.defaultPalette) {
OX_RETURN_ERROR(loadSpritePalette(ctx, ts.defaultPalette));