diff --git a/src/core/ppu.zig b/src/core/ppu.zig index 32a8d09..4fca985 100644 --- a/src/core/ppu.zig +++ b/src/core/ppu.zig @@ -54,7 +54,7 @@ pub const Ppu = struct { sched.push(.Draw, 240 * 4); const sprites = try allocator.create([128]?Sprite); - sprites.* = [_]?Sprite{null} ** 128; + std.mem.set(?Sprite, sprites, null); return Self{ .vram = try Vram.init(allocator),