aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--simon/simon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 24c5f6f64b..d0ededcccb 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -2885,7 +2885,7 @@ void SimonEngine::o_file_error(FillOrCopyStruct *fcs, bool save_error) {
video_putchar(fcs, *string);
ha = findEmptyHitArea();
- ha->x = (fcs->width >> 1) + fcs->x - 3 << 3;
+ ha->x = ((fcs->width >> 1) + (fcs->x - 3)) << 3;
ha->y = (fcs->height << 3) + fcs->y - 8;
ha->width = 48;
ha->height = 8;