summaryrefslogtreecommitdiff
path: root/ppu.c
diff options
context:
space:
mode:
Diffstat (limited to 'ppu.c')
-rw-r--r--ppu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ppu.c b/ppu.c
index 48ccbfc..6b57085 100644
--- a/ppu.c
+++ b/ppu.c
@@ -400,7 +400,7 @@ static void ppu_tick(struct nes_state *state) {
ppu->reg_status |= 0x80;
if(ppu->reg_ctrl & 0x80) {
- state->nmi_pending = 1;
+ state->cpu.nmi_pending = 1;
}
}