Initialise all members of the Graphics class.

Found by cppcheck.
This commit is contained in:
Guus Sliepen 2011-08-24 23:49:59 +02:00
parent 73c92917e2
commit 39ca89d91c
1 changed files with 7 additions and 0 deletions

View File

@ -232,8 +232,15 @@ class Graphics {
for (int i = 0 ; i < MAX_SHOPSHAPES ; i++)
shopSurface[i] = NULL;
for (int i = 0 ; i < MAX_FONTSHAPES ; i++)
fontShape[i] = NULL;
background = NULL;
messageBox = NULL;
frameLimit = 0;
thirds = 0;
screen = NULL;
}
SDL_Surface *setTransparent(SDL_Surface *sprite)