From 07b8a5b0baed8c7b23681c99f25f297045945bfc Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 2 Nov 2024 22:19:15 +0100 Subject: fix more bugs --- backend/Enemy.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'backend/Enemy.cpp') diff --git a/backend/Enemy.cpp b/backend/Enemy.cpp index a2bab30..5f6f0cf 100644 --- a/backend/Enemy.cpp +++ b/backend/Enemy.cpp @@ -40,9 +40,7 @@ ListRange Enemy::get_hidden_objects() { return this->hidden_objects.range(); } -const String & Enemy::get_displayname() const { - static String displayname; - displayname = String::fmt("%s%s", this->name.c_str(), this->health_points == 0 ? " [verslagen]" : ""); - return displayname; +String Enemy::get_displayname() const { + return String::fmt("%s%s", this->name.c_str(), this->health_points == 0 ? " [verslagen]" : ""); } -- cgit v1.2.3