mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Ensure that all member attributes are initialized
I ran the game through cppcheck and it spat out a bunch of member attributes that weren't being initialized. So I initialized them. In the previous version of this commit, I added constructors to GraphicsResources, otherlevelclass, labclass, warpclass, and finalclass, but flibit says this changes the code flow enough that it's risky to merge before 2.4, so I got rid of those constructors, too.
This commit is contained in:
@@ -13,6 +13,20 @@ textboxclass::textboxclass()
|
||||
tm = 0;
|
||||
timer = 0;
|
||||
allowspecial = false;
|
||||
|
||||
xp = 0;
|
||||
yp = 0;
|
||||
r = 0;
|
||||
g = 0;
|
||||
b = 0;
|
||||
tr = 0;
|
||||
tg = 0;
|
||||
tb = 0;
|
||||
max = 0;
|
||||
textrect.x = 0;
|
||||
textrect.y = 0;
|
||||
textrect.w = 0;
|
||||
textrect.h = 0;
|
||||
}
|
||||
|
||||
void textboxclass::centerx()
|
||||
|
||||
Reference in New Issue
Block a user