diff --git a/src/nostalgia/core/gfx.hpp b/src/nostalgia/core/gfx.hpp index 3c62092c..42dad3dd 100644 --- a/src/nostalgia/core/gfx.hpp +++ b/src/nostalgia/core/gfx.hpp @@ -217,7 +217,7 @@ struct TileSheet { constexpr auto setPixelCount(int8_t bpp, std::size_t cnt) noexcept { switch (bpp) { case 4: - pixels.resize(cnt * 2); + pixels.resize(cnt / 2); return OxError(0); case 8: pixels.resize(cnt);