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:
Misa
2020-07-06 13:04:34 -07:00
committed by Ethan Lee
parent 3b6867243b
commit 7703b2c1c2
9 changed files with 88 additions and 21 deletions

View File

@@ -11,6 +11,7 @@ binaryBlob::binaryBlob()
{
numberofHeaders = 0;
SDL_memset(m_headers, 0, sizeof(m_headers));
SDL_memset(m_memblocks, 0, sizeof(m_memblocks));
}
#ifdef VVV_COMPILEMUSIC