fix: ppuViewer crashes the app when ROM is not opened (#319)

This commit is contained in:
Oleg V. Polivets 2021-02-02 04:09:51 +03:00 committed by GitHub
parent 30fcc91fdc
commit 45fc222467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1255,6 +1255,9 @@ static void DrawPatternTable( ppuPatternTable_t *pattern, uint8_t *table, uint8_
int p=0,tmp;
uint8_t chr0,chr1,logs,shift;
if (!palo)
return;
pal <<= 2;
for (i = 0; i < 16; i++) //Columns
{