mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59: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:
parent
2a781083e9
commit
fad3bab2d0
1 changed files with 1 additions and 1 deletions
|
@ -1932,7 +1932,7 @@ void Graphics::drawbackground( int t )
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
{
|
{
|
||||||
int bcol, bcol2;
|
int bcol = 0, bcol2 = 0;
|
||||||
|
|
||||||
//Lab
|
//Lab
|
||||||
switch(rcol)
|
switch(rcol)
|
||||||
|
|
Loading…
Reference in a new issue