Fixed minor warning for potential uninitialized variable.

This commit is contained in:
Stephen Anthony 2017-08-09 22:38:39 -02:30
parent 1e7e4cbe20
commit 55111c4ccb
1 changed files with 1 additions and 3 deletions

View File

@ -1276,7 +1276,7 @@ void TIA::renderPixel(uInt32 x, uInt32 y)
{ {
if (x >= 160) return; if (x >= 160) return;
uInt8 color; uInt8 color = 0;
if (!myFrameManager.vblank()) if (!myFrameManager.vblank())
{ {
@ -1325,8 +1325,6 @@ void TIA::renderPixel(uInt32 x, uInt32 y)
break; break;
} }
} }
else
color = 0;
myFramebuffer[y * 160 + x] = color; myFramebuffer[y * 160 + x] = color;
} }