diff options
author | Aki <please@ignore.pl> | 2021-10-02 16:24:51 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-10-02 16:24:51 +0200 |
commit | d25ea30c9cd9e66ea5d484017a9209cdb78332ae (patch) | |
tree | 3100901c6e3b1c085aaed9865ea0b15248ab23bc /Stars45 | |
parent | c8031cf1d2d784bdac9aa4ea97fc27f88b8e3ce7 (diff) | |
download | starshatter-d25ea30c9cd9e66ea5d484017a9209cdb78332ae.zip starshatter-d25ea30c9cd9e66ea5d484017a9209cdb78332ae.tar.gz starshatter-d25ea30c9cd9e66ea5d484017a9209cdb78332ae.tar.bz2 |
Fixed conversion from rvalue to non-const lvalue reference
Diffstat (limited to 'Stars45')
-rw-r--r-- | Stars45/HUDView.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |