aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2016-06-23 21:07:27 +0300
committerFilippos Karapetis2016-06-23 21:07:27 +0300
commite80f1bb115b919c95ef9efaaf089c0da3e42c33c (patch)
tree202dd71b068daa1cd41cfcb57a12fd8c8290e89b /engines/sci
parent97c50fcfb88dd1ba7daefee1decc79298cbdb6ca (diff)
downloadscummvm-rg350-e80f1bb115b919c95ef9efaaf089c0da3e42c33c.tar.gz
scummvm-rg350-e80f1bb115b919c95ef9efaaf089c0da3e42c33c.tar.bz2
scummvm-rg350-e80f1bb115b919c95ef9efaaf089c0da3e42c33c.zip
SCI32: Fix potentially uninitialized variable
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/sound/audio32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/sound/audio32.cpp b/engines/sci/sound/audio32.cpp
index 8dcdf797a9..def3e4d838 100644
--- a/engines/sci/sound/audio32.cpp
+++ b/engines/sci/sound/audio32.cpp
@@ -800,7 +800,7 @@ reg_t Audio32::kernelPlay(const bool autoPlay, const int argc, const reg_t *cons
bool loop;
int16 volume;
bool monitor = false;
- reg_t soundNode;
+ reg_t soundNode = NULL_REG;
if (argc >= 5) {
resourceId = ResourceId(kResourceTypeAudio36, argv[0].toUint16(), argv[1].toUint16(), argv[2].toUint16(), argv[3].toUint16(), argv[4].toUint16());