aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/pegasus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pegasus/pegasus.cpp')
-rw-r--r--engines/pegasus/pegasus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp
index 5fda8ccad4..5c25be2cfa 100644
--- a/engines/pegasus/pegasus.cpp
+++ b/engines/pegasus/pegasus.cpp
@@ -1795,7 +1795,7 @@ void PegasusEngine::autoDragItemIntoRoom(Item *item, Sprite *draggingSprite) {
stop.y -= bounds.height() >> 1;
int dx = ABS(stop.x - start.x);
- int dy = ABS(stop.y = start.y);
+ int dy = ABS(stop.y - start.y);
TimeValue time = MAX(dx, dy);
allowInput(false);
@@ -1828,7 +1828,7 @@ void PegasusEngine::autoDragItemIntoInventory(Item *, Sprite *draggingSprite) {
Common::Point stop((76 + 172 - r.width()) / 2, 334 - (2 * r.height() / 3));
int dx = ABS(stop.x - start.x);
- int dy = ABS(stop.y = start.y);
+ int dy = ABS(stop.y - start.y);
TimeValue time = MAX(dx, dy);
allowInput(false);