1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Initialize bcol and bcol2 in Graphics::drawbackground()

While compiling in release mode, GCC warns about these two potentially
being used uninitialized further down. The only way this could happen is
if the case-switches below didn't match up with a case, which would
require the game to be in an invalid state (and have invalid values for
rcol and spcol), but it's better to be safe than sorry.
This commit is contained in:
Misa 2021-01-13 19:39:50 -08:00 committed by Ethan Lee
parent 2a781083e9
commit fad3bab2d0

View file

@ -1932,7 +1932,7 @@ void Graphics::drawbackground( int t )
break;
case 2:
{
int bcol, bcol2;
int bcol = 0, bcol2 = 0;
//Lab
switch(rcol)