diff --git a/src/nostalgia/core/sdl/gfx.cpp b/src/nostalgia/core/sdl/gfx.cpp index 4c3e20b1..fc301754 100644 --- a/src/nostalgia/core/sdl/gfx.cpp +++ b/src/nostalgia/core/sdl/gfx.cpp @@ -113,7 +113,7 @@ ox::Error loadTileSheet(Context *ctx, auto surface = SDL_CreateRGBSurfaceWithFormat(0, width, height, 16, format); auto sdlPalette = createSDL_Palette(palette); SDL_SetSurfacePalette(surface, sdlPalette); - if (bytesPerTile == 1) { + if (bytesPerTile == 64) { SDL_memcpy(surface->pixels, tilesheet.tiles.data(), bytesPerTile * tiles); } else { for (std::size_t i = 0; i < tilesheet.tiles.size(); ++i) {