From 39ca89d91ca5ebc1e8f052647e9fe91277ee7d5b Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 24 Aug 2011 23:49:59 +0200 Subject: [PATCH] Initialise all members of the Graphics class. Found by cppcheck. --- code/classes.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/classes.h b/code/classes.h index cf4ddf7..d5ec867 100644 --- a/code/classes.h +++ b/code/classes.h @@ -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)