diff --git a/Source/UI/Lists/UIChatHisBox.h b/Source/UI/Lists/UIChatHisBox.h index b79e0f45..7c68b302 100644 --- a/Source/UI/Lists/UIChatHisBox.h +++ b/Source/UI/Lists/UIChatHisBox.h @@ -50,7 +50,7 @@ public: bool Name(const std::string& encoded, std::string& output); bool Next(std::string& remaining, std::string& encoded, unsigned& position, const char* original); std::string Convert(const std::string& text); - std::string BracketName(const std::string& name); + const std::string BracketName(const std::string& name); /* 00D4 */ std::list> itemTags; diff --git a/Source/UI/Text/ItemLinkDisplay.cpp b/Source/UI/Text/ItemLinkDisplay.cpp index 167e1db5..17233634 100644 --- a/Source/UI/Text/ItemLinkDisplay.cpp +++ b/Source/UI/Text/ItemLinkDisplay.cpp @@ -126,7 +126,7 @@ std::string UIChatHisBox::Convert(const std::string& text) { // OFFSET: 0x00884460 // FUNCTION: fn_11307 -std::string UIChatHisBox::BracketName(const std::string& name) { +const std::string UIChatHisBox::BracketName(const std::string& name) { std::string result; result += '<'; result += FitText(*this->geometry.surface, name, this->geometry.width / 2);