diff options
author | Torbjörn Andersson | 2005-04-21 06:53:15 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-04-21 06:53:15 +0000 |
commit | cca9fb4804a910f3fe92c48328c825a924ef65f8 (patch) | |
tree | dd79ed21e001fc92e25c77511f461e5ebdb7c586 /gob | |
parent | 9b3d2b3c8c0f88924ae4c8b5a0f31c1c46d32960 (diff) | |
download | scummvm-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.cpp | 4 |
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, |