mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Initialize bx1/by1/bx2/by2 in custom entity creation
When I compile in release mode, GCC complains that these variables MAY be uninitialized when it comes time to create the moving platform entity. I can't think of any way that it could be uninitialized and testing my release build seemed to be fine, but I'm initializing these variables just to be sure.
This commit is contained in:
parent
a35bc9d8dc
commit
70ad0003e1
1 changed files with 1 additions and 1 deletions
|
@ -1721,7 +1721,7 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
const int ey = (ent.y % 30) * 8;
|
||||
|
||||
// Platform and enemy bounding boxes
|
||||
int bx1, by1, bx2, by2;
|
||||
int bx1 = 0, by1 = 0, bx2 = 0, by2 = 0;
|
||||
|
||||
if (ent.t == 1 || (ent.t == 2 && ent.p1 <= 4))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue