From cca9fb4804a910f3fe92c48328c825a924ef65f8 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 21 Apr 2005 06:53:15 +0000 Subject: Initialized variable to avoid Valgrind warning. svn-id: r17732 --- gob/game.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gob') diff --git a/gob/game.cpp b/gob/game.cpp index c772ff3d29..d0b653785f 100644 --- a/gob/game.cpp +++ b/gob/game.cpp @@ -168,8 +168,10 @@ char *game_loadExtData(int16 itemId, int16 *pResWidth, int16 *pResHeight) { void game_clearCollisions() { int16 i; - for (i = 0; i < 250; i++) + for (i = 0; i < 250; i++) { + game_collisionAreas[i].id = 0; game_collisionAreas[i].left = -1; + } } void game_addNewCollision(int16 id, int16 left, int16 top, int16 right, int16 bottom, -- cgit v1.2.3