From aa0544a73122cd4f18bfcb28e8ddebf348686f5d Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Thu, 10 Mar 2011 12:55:26 +0000 Subject: Ensure some variables are initialised --- Level.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Level.cpp') diff --git a/Level.cpp b/Level.cpp index 652284d..e9fdb28 100644 --- a/Level.cpp +++ b/Level.cpp @@ -203,6 +203,7 @@ void Level::draw(Screen *screen) { void Level::loadMap(int LevelNo) { numPlatforms = 0; + numHazards = 0; // TODO: Let each Platform have a reference a single tiles image platform[0].setImage("tiles.png"); hazard[0].setImage("tiles.png"); -- cgit v1.2.3