aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/kpathing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp
index 2fdcbd475f..cfb5fbad2b 100644
--- a/engines/sci/engine/kpathing.cpp
+++ b/engines/sci/engine/kpathing.cpp
@@ -83,7 +83,7 @@ struct FloatPoint {
FloatPoint(float x_, float y_) : x(x_), y(y_) {}
Common::Point toPoint() {
- return Common::Point(x + 0.5, y + 0.5);
+ return Common::Point((int16)(x + 0.5), (int16)(y + 0.5));
}
float x, y;