diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 20:08:08 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 20:08:08 +0100 |
| commit | c4ab1532769de3196afe10a0b200f631cdc438b4 (patch) | |
| tree | a968fc11f35d988687bebb3f13eadfbf017e2494 /lib/nes/sys | |
| parent | a1fd97365f528ce297a7cba2ee965667bf3ea3f6 (diff) | |
i'm sad
Diffstat (limited to 'lib/nes/sys')
| -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; } |
