aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Turner2011-01-23 22:52:15 +0000
committerDavid Turner2011-01-23 22:52:15 +0000
commit86513a19aad390c11eb060454bcc6a27822a94c1 (patch)
tree218f2ece97e8a7817f1e40dbfca19a34b12902af
parentf7f42fba21583ed5733268dedcc04f28e26372c2 (diff)
downloadscummvm-rg350-86513a19aad390c11eb060454bcc6a27822a94c1.tar.gz
scummvm-rg350-86513a19aad390c11eb060454bcc6a27822a94c1.tar.bz2
scummvm-rg350-86513a19aad390c11eb060454bcc6a27822a94c1.zip
MOHAWK: Fixed possible use of uninitialized variables in Myst Selenitic Age code.
svn-id: r55486
-rw-r--r--engines/mohawk/myst_stacks/selenitic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/myst_stacks/selenitic.cpp b/engines/mohawk/myst_stacks/selenitic.cpp
index 85654050a7..3e00d242be 100644
--- a/engines/mohawk/myst_stacks/selenitic.cpp
+++ b/engines/mohawk/myst_stacks/selenitic.cpp
@@ -972,8 +972,8 @@ void MystScriptParser_Selenitic::soundReceiverUpdateSound() {
}
uint16 MystScriptParser_Selenitic::soundReceiverCurrentSound(uint16 source, uint16 position) {
- uint16 solution;
- bool sourceEnabled;
+ uint16 solution = 0;
+ bool sourceEnabled = false;
soundReceiverSolution(source, solution, sourceEnabled);
uint16 soundIdGood = 0;