diff options
author | Torbjörn Andersson | 2005-11-10 15:37:58 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-11-10 15:37:58 +0000 |
commit | 02d24dd7b50fa59b242902536d71c4db9fdf7946 (patch) | |
tree | 517eb25c94e9eeb364c385ae244e6cd3fe5c77eb | |
parent | dd4e750640b7d12b4d5c16483732280459ae80d2 (diff) | |
download | scummvm-rg350-02d24dd7b50fa59b242902536d71c4db9fdf7946.tar.gz scummvm-rg350-02d24dd7b50fa59b242902536d71c4db9fdf7946.tar.bz2 scummvm-rg350-02d24dd7b50fa59b242902536d71c4db9fdf7946.zip |
Fixed compilation.
svn-id: r19549
-rw-r--r-- | kyra/sprites.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kyra/sprites.cpp b/kyra/sprites.cpp index bea98591b9..8340845fac 100644 --- a/kyra/sprites.cpp +++ b/kyra/sprites.cpp @@ -142,6 +142,7 @@ void Sprites::updateSceneAnims() { while (READ_LE_UINT16(data) != 0xFF87 && !endLoop) { uint16 rndNr; uint16 anim; + uint16 sound; assert((data - _anims[i].script) < _anims[i].length); switch (READ_LE_UINT16(data)) { case 0xFF88: @@ -358,7 +359,7 @@ void Sprites::updateSceneAnims() { data += 2; debug(5, "func: Play (at random) a certain sound at a certain percentage of time"); debug(5, "Sound index %i", READ_LE_UINT16(data)); - int sound = READ_LE_UINT16(data); + sound = READ_LE_UINT16(data); data += 2; debug(5, "Percentage %i", READ_LE_UINT16(data)); rndNr = _rnd.getRandomNumber(100); |