From 9f18cb5bdcab50b35301d167f65f7e0dd9ef1016 Mon Sep 17 00:00:00 2001 From: lethosor Date: Sat, 3 Jun 2017 11:24:23 -0400 Subject: [PATCH] resume: use map y dimension and fix off-by-one error --- plugins/resume.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/resume.cpp b/plugins/resume.cpp index bd0b5f4ee..5909c0956 100644 --- a/plugins/resume.cpp +++ b/plugins/resume.cpp @@ -125,7 +125,7 @@ void show_suspended_buildings() auto dims = Gui::getDwarfmodeViewDims(); int left_margin = vx + dims.map_x2; - int bottom_margin = vy + dims.y2; + int bottom_margin = vy + dims.map_y2 - 1; for (auto sb = suspended_buildings.begin(); sb != suspended_buildings.end();) {