diff options
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>"; |