fix: ppuViewer crashes the app when ROM is not opened (#319)
This commit is contained in:
parent
30fcc91fdc
commit
45fc222467
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue