aboutsummaryrefslogtreecommitdiff
path: root/gob
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-04-21 06:53:15 +0000
committerTorbjörn Andersson2005-04-21 06:53:15 +0000
commitcca9fb4804a910f3fe92c48328c825a924ef65f8 (patch)
treedd79ed21e001fc92e25c77511f461e5ebdb7c586 /gob
parent9b3d2b3c8c0f88924ae4c8b5a0f31c1c46d32960 (diff)
downloadscummvm-rg350-cca9fb4804a910f3fe92c48328c825a924ef65f8.tar.gz
scummvm-rg350-cca9fb4804a910f3fe92c48328c825a924ef65f8.tar.bz2
scummvm-rg350-cca9fb4804a910f3fe92c48328c825a924ef65f8.zip
Initialized variable to avoid Valgrind warning.
svn-id: r17732
Diffstat (limited to 'gob')
-rw-r--r--gob/game.cpp4
1 files changed, 3 insertions, 1 deletions
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,