aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/screen_item32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/screen_item32.cpp b/engines/sci/graphics/screen_item32.cpp
index 4757770dc0..c07e07538e 100644
--- a/engines/sci/graphics/screen_item32.cpp
+++ b/engines/sci/graphics/screen_item32.cpp
@@ -236,7 +236,7 @@ void ScreenItem::setFromObject(SegManager *segMan, const reg_t object, const boo
writeSelectorValue(segMan, object, SELECTOR(priority), _position.y);
}
- _z = readSelectorValue(segMan, object, SELECTOR(z));
+ _z = (int16)readSelectorValue(segMan, object, SELECTOR(z));
_position.y -= _z;
if (g_sci->_features->usesAlternateSelectors()) {