mmc5.cpp fix warning about int to boolean type conversion

This commit is contained in:
Brad Smith 2018-06-01 21:08:35 -04:00
parent fd29f48d01
commit 29171209a7
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ uint8* MMC5BGVRAMADR(uint32 A)
{ {
if(Sprite16) if(Sprite16)
{ {
bool isPattern = PPUON; bool isPattern = PPUON != 0;
if (ppuphase == PPUPHASE_OBJ && isPattern) if (ppuphase == PPUPHASE_OBJ && isPattern)
return &ABANKS[(A) >> 10][(A)]; return &ABANKS[(A) >> 10][(A)];
if (ppuphase == PPUPHASE_BG && isPattern) if (ppuphase == PPUPHASE_BG && isPattern)