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
1 changed files with 1 additions and 1 deletions

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)