diff options
author | D G Turner | 2019-09-30 03:15:47 +0100 |
---|---|---|
committer | D G Turner | 2019-09-30 03:15:47 +0100 |
commit | 420cbaf8b0bcbc13fd4fa52e01adc27376156599 (patch) | |
tree | ebff347ce5d64cc6d669831b69504ed96f109a10 /engines/sci | |
parent | d68ab5e4af761d9c78ebcf3b391ae517ad71973e (diff) | |
download | scummvm-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.cpp | 2 |
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>"; |