diff --git a/src/boards/mmc5.cpp b/src/boards/mmc5.cpp index d3388bdf..771ea7ec 100644 --- a/src/boards/mmc5.cpp +++ b/src/boards/mmc5.cpp @@ -122,7 +122,7 @@ uint8* MMC5BGVRAMADR(uint32 A) { if(Sprite16) { - bool isPattern = PPUON; + bool isPattern = PPUON != 0; if (ppuphase == PPUPHASE_OBJ && isPattern) return &ABANKS[(A) >> 10][(A)]; if (ppuphase == PPUPHASE_BG && isPattern)