Skip to content

Commit

Permalink
fixing null
Browse files Browse the repository at this point in the history
  • Loading branch information
brovador committed Aug 22, 2018
1 parent 3cea5b4 commit 650bb46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/GBEmulator/Scripts/GPU.cs
Expand Up @@ -208,6 +208,10 @@ void DrawScanline()
tile = tiles[(uint)nTile];
}

if (tile == null) {
continue;
}

tileY = (int)(lineY & 7);
tileX = (int)(lineX & 7);

Expand Down

0 comments on commit 650bb46

Please sign in to comment.