diff options
| author | Filippos Karapetis | 2010-11-29 23:14:04 +0000 |
|---|---|---|
| committer | Filippos Karapetis | 2010-11-29 23:14:04 +0000 |
| commit | 59604fa014dfa62f60444aa2c4fcdee7deaf9e77 (patch) | |
| tree | eb60c13b772ce658523804d4b8777fdb63bb6d7a | |
| parent | 66ba82a451a4f058fcaf51eea81253165ed021ac (diff) | |
| download | scummvm-rg350-59604fa014dfa62f60444aa2c4fcdee7deaf9e77.tar.gz scummvm-rg350-59604fa014dfa62f60444aa2c4fcdee7deaf9e77.tar.bz2 scummvm-rg350-59604fa014dfa62f60444aa2c4fcdee7deaf9e77.zip | |
MOHAWK: Silence warnings
svn-id: r54654
| -rw-r--r-- | engines/mohawk/myst_stacks/selenitic.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/mohawk/myst_stacks/selenitic.cpp b/engines/mohawk/myst_stacks/selenitic.cpp index fde037dbcd..84cb1f884d 100644 --- a/engines/mohawk/myst_stacks/selenitic.cpp +++ b/engines/mohawk/myst_stacks/selenitic.cpp @@ -1011,8 +1011,8 @@ uint16 MystScriptParser_Selenitic::soundReceiverCurrentSound(uint16 source, uint bool sourceEnabled; soundReceiverSolution(source, solution, sourceEnabled); - uint16 soundIdGood; - uint16 soundIdNear; + uint16 soundIdGood = 0; + uint16 soundIdNear = 0; uint16 soundId = 1245; switch (source) { @@ -1036,6 +1036,8 @@ uint16 MystScriptParser_Selenitic::soundReceiverCurrentSound(uint16 source, uint soundIdNear = 4245; soundIdGood = 4093; break; + default: + error("MystScriptParser_Selenitic::soundReceiverCurrentSound(): Unknown source (%d)", source); } if (sourceEnabled) { |
