From d25ea30c9cd9e66ea5d484017a9209cdb78332ae Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Oct 2021 16:24:51 +0200 Subject: Fixed conversion from rvalue to non-const lvalue reference --- Stars45/HUDView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Stars45') diff --git a/Stars45/HUDView.cpp b/Stars45/HUDView.cpp index 01a0c94..4521c06 100644 --- a/Stars45/HUDView.cpp +++ b/Stars45/HUDView.cpp @@ -1361,7 +1361,10 @@ HUDView::DrawBars() int align = DT_LEFT; if (Game::Paused()) - DrawHUDText(TXT_PAUSED, Game::GetText("HUDView.PAUSED"), Rect(cx-128, cy-60, 256, 12), DT_CENTER); + { + Rect pause_rect = Rect(cx - 128, cy - 60, 256, 12); + DrawHUDText(TXT_PAUSED, Game::GetText("HUDView.PAUSED"), pause_rect, DT_CENTER); + } if (ship) { DrawContactMarkers(); -- cgit v1.1