diff --git a/Source/UI/Text/NavigationLink.cpp b/Source/UI/Text/NavigationLink.cpp index 6f102ab1..d618925f 100644 --- a/Source/UI/Text/NavigationLink.cpp +++ b/Source/UI/Text/NavigationLink.cpp @@ -1123,7 +1123,8 @@ UITextButton* CCreateLineInfo::CreateLinkWindow(const std::string& text, const s button->SetId(type); button->ResizeToTextClipped(width + 1, button->geometry.height); - for (std::string part : parts) { + for (auto it = parts.begin(); it != parts.end(); ++it) { + std::string part = *it; button->m_lines.push_back(part); }