[nostalgia/core] Fix TileSheet::SubSheet::setPixelCount

This commit is contained in:
Gary Talent 2022-03-05 18:27:45 -06:00
parent b225d976f5
commit 94653cb9af

View File

@ -217,7 +217,7 @@ struct TileSheet {
constexpr auto setPixelCount(int8_t bpp, std::size_t cnt) noexcept { constexpr auto setPixelCount(int8_t bpp, std::size_t cnt) noexcept {
switch (bpp) { switch (bpp) {
case 4: case 4:
pixels.resize(cnt * 2); pixels.resize(cnt / 2);
return OxError(0); return OxError(0);
case 8: case 8:
pixels.resize(cnt); pixels.resize(cnt);