diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-02 22:19:15 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-02 22:19:15 +0100 |
commit | 07b8a5b0baed8c7b23681c99f25f297045945bfc (patch) | |
tree | 8383b4b675aba53d19a667f4713c3e73c32e9652 /backend/ArmorObject.cpp | |
parent | d554cb39a2f1ec97dd214a5dd200ae5f03cf616d (diff) |
fix more bugs
Diffstat (limited to 'backend/ArmorObject.cpp')
-rw-r--r-- | backend/ArmorObject.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/ArmorObject.cpp b/backend/ArmorObject.cpp index eb805e0..3e0a4e2 100644 --- a/backend/ArmorObject.cpp +++ b/backend/ArmorObject.cpp @@ -7,8 +7,7 @@ int ArmorObject::get_protection() const { return this->protection; } -const String & ArmorObject::get_displayname() const { - static String display = String::fmt("%s (%d bescherming)", this->get_name().c_str(), this->protection); - return display; +String ArmorObject::get_displayname() const { + return String::fmt("%s (%d bescherming)", this->get_name().c_str(), this->protection); } |