diff options
Diffstat (limited to 'lib/nes/sys/ppu.cc')
| -rw-r--r-- | lib/nes/sys/ppu.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nes/sys/ppu.cc b/lib/nes/sys/ppu.cc index ce145d5..5b9f5db 100644 --- a/lib/nes/sys/ppu.cc +++ b/lib/nes/sys/ppu.cc @@ -242,7 +242,7 @@ namespace nes::sys sprite_count_ = 0; for (auto i = u32{ 0 }; i < sprite_max_count; ++i) { - auto const s = sprite{ span{ oam_ }.subspan<4>(i * 4) }; + auto const s = sprite{ span<u8 const>{ oam_ }.subspan<4>(i * 4) }; auto const row = static_cast<int>(scanline_) - static_cast<int>(s.get_y()); if (row < 0 || static_cast<u32>(row) >= height) { continue; } |
