aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2006-01-05 20:54:53 +0000
committerPaweł Kołodziejski2006-01-05 20:54:53 +0000
commitd397e7d96f81540457a00b8e909f89afa771d622 (patch)
tree888e13da8e88a12aa72a53c58aa6c8716317fa56
parent3adee6125dfab45cfb667eebe3ab631e8dd49401 (diff)
downloadscummvm-rg350-d397e7d96f81540457a00b8e909f89afa771d622.tar.gz
scummvm-rg350-d397e7d96f81540457a00b8e909f89afa771d622.tar.bz2
scummvm-rg350-d397e7d96f81540457a00b8e909f89afa771d622.zip
fixed warnings
svn-id: r19919
-rw-r--r--gob/inter_v1.cpp2
-rw-r--r--scumm/resource.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/gob/inter_v1.cpp b/gob/inter_v1.cpp
index 7a3a1d5d32..2dde0d9078 100644
--- a/gob/inter_v1.cpp
+++ b/gob/inter_v1.cpp
@@ -1475,7 +1475,7 @@ bool Inter_v1::o1_call(char &cmdCount, int16 &counter, int16 &retFlag) {
bool Inter_v1::o1_callBool(char &cmdCount, int16 &counter, int16 &retFlag) {
byte cmd;
- bool boolRes = evalBoolResult();
+ bool boolRes = evalBoolResult() != 0;
if (boolRes != 0) {
if (counter == cmdCount
&& retFlag == 2)
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index 63deb1b520..82cb649bfa 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -1006,7 +1006,7 @@ bool ScummEngine::isResourceInUse(int type, int i) const {
case rtCharset:
return _charset->getCurID() == i;
case rtSpoolBuffer:
- return _sound->isSoundRunning(10000 + i);
+ return _sound->isSoundRunning(10000 + i) != 0;
default:
return false;
}