Merge pull request #8 from bbbradsmith/mmc5_warning

mmc5.cpp fix warning about int to boolean type conversion
This commit is contained in:
Brad Smith 2018-06-02 02:29:37 -04:00 committed by GitHub
commit e90b7e17b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)