From d397e7d96f81540457a00b8e909f89afa771d622 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Thu, 5 Jan 2006 20:54:53 +0000 Subject: fixed warnings svn-id: r19919 --- gob/inter_v1.cpp | 2 +- scumm/resource.cpp | 2 +- 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; } -- cgit v1.2.3