summaryrefslogtreecommitdiffhomepage
path: root/Stars45
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-10-02 21:47:07 +0200
committerAki <please@ignore.pl>2021-10-02 21:47:07 +0200
commit9bc479224fd24c51672bb5f2cb6eb37409807b51 (patch)
tree797f51b93045108e9e643bbefc1eaddeee456a3e /Stars45
parent976a9f0b2a493adc9e8d5fdddd500fa6bfa712a3 (diff)
downloadstarshatter-9bc479224fd24c51672bb5f2cb6eb37409807b51.zip
starshatter-9bc479224fd24c51672bb5f2cb6eb37409807b51.tar.gz
starshatter-9bc479224fd24c51672bb5f2cb6eb37409807b51.tar.bz2
Fixed rvalue reference in MFD text drawing
Diffstat (limited to 'Stars45')
-rw-r--r--Stars45/Mfd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Stars45/Mfd.cpp b/Stars45/Mfd.cpp
index 7c1e704..aaf1d4c 100644
--- a/Stars45/Mfd.cpp
+++ b/Stars45/Mfd.cpp
@@ -1071,7 +1071,8 @@ MFD::Draw3D()
void
MFD::DrawMap()
{
- DrawMFDText(0, Game::GetText("MFD.mode.ground").data(), Rect(rect.x, rect.y, rect.w, 12), DT_CENTER);
+ Rect text_rect(rect.x, rect.y, rect.w, 12);
+ DrawMFDText(0, Game::GetText("MFD.mode.ground").data(), text_rect, DT_CENTER);
}
// +--------------------------------------------------------------------+