summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--viewport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/viewport.c b/viewport.c
index ed22304ce..8a8fdfcb6 100644
--- a/viewport.c
+++ b/viewport.c
@@ -2227,7 +2227,7 @@ void SetObjectToPlace(CursorID icon, byte mode, WindowClass window_class, Window
VpStartPreSizing();
if ( (int)icon < 0)
- SetAnimatedMouseCursor(_animcursors[~icon]);
+ SetAnimatedMouseCursor(_animcursors[~((int)icon)]);
else
SetMouseCursor(icon);
}