aboutsummaryrefslogtreecommitdiff
path: root/backend/GoldObject.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-02 22:19:15 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-02 22:19:15 +0100
commit07b8a5b0baed8c7b23681c99f25f297045945bfc (patch)
tree8383b4b675aba53d19a667f4713c3e73c32e9652 /backend/GoldObject.cpp
parentd554cb39a2f1ec97dd214a5dd200ae5f03cf616d (diff)
fix more bugs
Diffstat (limited to 'backend/GoldObject.cpp')
-rw-r--r--backend/GoldObject.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/GoldObject.cpp b/backend/GoldObject.cpp
index 525b2f2..00ee205 100644
--- a/backend/GoldObject.cpp
+++ b/backend/GoldObject.cpp
@@ -7,8 +7,7 @@ int GoldObject::get_count() const {
return this->count;
}
-const String & GoldObject::get_displayname() const {
- static String display = String::fmt("%s (%d)", this->get_name().c_str(), this->count);
- return display;
+String GoldObject::get_displayname() const {
+ return String::fmt("%s (%d)", this->get_name().c_str(), this->count);
}