summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/story_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/story_gui.cpp b/src/story_gui.cpp
index 7a23dec7d..1e0bc09da 100644
--- a/src/story_gui.cpp
+++ b/src/story_gui.cpp
@@ -508,7 +508,7 @@ public:
/* Set up a clipping region for the panel. */
DrawPixelInfo tmp_dpi;
- if (!FillDrawPixelInfo(&tmp_dpi, x, y, right - x + 1, r.bottom - y + 1)) return;
+ if (!FillDrawPixelInfo(&tmp_dpi, x, y, right - x + 1, bottom - y + 1)) return;
DrawPixelInfo *old_dpi = _cur_dpi;
_cur_dpi = &tmp_dpi;