aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-17 10:19:06 +0000
committerEugene Sandulenko2010-08-17 10:19:06 +0000
commitb6d1c45bb7ece9eab12f3bc958923112662232fb (patch)
tree9411b516b01637e186ef1d81fdadc600e8b33cbc /engines
parentef21077b81ce3298b42dfed861a0d98e4209348e (diff)
downloadscummvm-rg350-b6d1c45bb7ece9eab12f3bc958923112662232fb.tar.gz
scummvm-rg350-b6d1c45bb7ece9eab12f3bc958923112662232fb.tar.bz2
scummvm-rg350-b6d1c45bb7ece9eab12f3bc958923112662232fb.zip
GOB: Fix warnings about potentially uninitialized vars.
svn-id: r52142
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/inter_v4.cpp2
-rw-r--r--engines/gob/inter_v6.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/inter_v4.cpp b/engines/gob/inter_v4.cpp
index d0824ffb58..ce1f19e9a7 100644
--- a/engines/gob/inter_v4.cpp
+++ b/engines/gob/inter_v4.cpp
@@ -228,7 +228,7 @@ void Inter_v4::o4_playVmdOrMusic() {
_vm->_vidPlayer->evaluateFlags(props);
- int slot;
+ int slot = 0;
if ((fileName[0] != 0) && ((slot = _vm->_vidPlayer->openVideo(true, fileName, props)) < 0)) {
WRITE_VAR(11, (uint32) -1);
return;
diff --git a/engines/gob/inter_v6.cpp b/engines/gob/inter_v6.cpp
index 73ef46bf31..a5a4f7d666 100644
--- a/engines/gob/inter_v6.cpp
+++ b/engines/gob/inter_v6.cpp
@@ -171,7 +171,7 @@ void Inter_v6::o6_playVmdOrMusic() {
_vm->_vidPlayer->evaluateFlags(props);
- int slot;
+ int slot = 0;
if ((fileName[0] != 0) && ((slot = _vm->_vidPlayer->openVideo(true, fileName, props)) < 0)) {
WRITE_VAR(11, (uint32) -1);
return;