diff --git a/Source/UI/Edit/UIEditBoxEx.cpp b/Source/UI/Edit/UIEditBoxEx.cpp index c18590369..90a095707 100644 --- a/Source/UI/Edit/UIEditBoxEx.cpp +++ b/Source/UI/Edit/UIEditBoxEx.cpp @@ -594,6 +594,12 @@ void CUIEditBoxEx::SetText(const std::string& text) { this->edit->SetText(text.c_str()); } +// STRING: st_16839 +static const std::string s_editExItemLinkOpen = ""; + +// STRING: st_16840 +static const std::string s_editExItemLinkClose = ""; + // OFFSET: 0x009E6500 // FUNCTION: fn_14462 void CUIEditCtrlEx::SetText(const char* value) { @@ -605,7 +611,7 @@ void CUIEditCtrlEx::SetText(const char* value) { g_serverLanguage->Select(0, static_cast(g_serverLanguage->text.size())); } - if (this->text.find("") != std::string::npos || this->text.find("") != std::string::npos) { + if (this->text.find(s_editExItemLinkOpen) != std::string::npos || this->text.find(s_editExItemLinkClose) != std::string::npos) { this->sub_869810(this->text.c_str()); }