diff options
Diffstat (limited to 'backend/WeaponObject.cpp')
-rw-r--r-- | backend/WeaponObject.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/WeaponObject.cpp b/backend/WeaponObject.cpp index a91b6bf..e1de42f 100644 --- a/backend/WeaponObject.cpp +++ b/backend/WeaponObject.cpp @@ -8,8 +8,7 @@ Range<int> WeaponObject::get_damage() const { return { this->damage_min, this->damage_max }; } -const String & WeaponObject::get_displayname() const { - static String display = String::fmt("%s (%d - %d schade)", this->get_name().c_str(), this->damage_min, this->damage_max); - return display; +String WeaponObject::get_displayname() const { + return String::fmt("%s (%d - %d schade)", this->get_name().c_str(), this->damage_min, this->damage_max); } |