aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorD G Turner2019-09-30 03:15:47 +0100
committerD G Turner2019-09-30 03:15:47 +0100
commit420cbaf8b0bcbc13fd4fa52e01adc27376156599 (patch)
treeebff347ce5d64cc6d669831b69504ed96f109a10 /engines/sci
parentd68ab5e4af761d9c78ebcf3b391ae517ad71973e (diff)
downloadscummvm-rg350-420cbaf8b0bcbc13fd4fa52e01adc27376156599.tar.gz
scummvm-rg350-420cbaf8b0bcbc13fd4fa52e01adc27376156599.tar.bz2
scummvm-rg350-420cbaf8b0bcbc13fd4fa52e01adc27376156599.zip
SCI: Fix MSVC Warning
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/scriptdebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp
index bf6372bf8e..c579239b09 100644
--- a/engines/sci/engine/scriptdebug.cpp
+++ b/engines/sci/engine/scriptdebug.cpp
@@ -218,7 +218,7 @@ reg_t disassemble(EngineState *s, reg_t pos, const Object *obj, bool printBWTag,
if (obj != nullptr) {
const Object *const super = obj->getClass(s->_segMan);
assert(super);
- if (param_value / 2 < super->getVarCount()) {
+ if ((param_value / 2) < (uint16)super->getVarCount()) {
selectorName = kernel->getSelectorName(super->getVarSelector(param_value / 2)).c_str();
} else {
selectorName = "<invalid>";