diff --git a/Source/Client/Mode/GameModePackets.cpp b/Source/Client/Mode/GameModePackets.cpp index 1f00f5a0f..281a152bf 100644 --- a/Source/Client/Mode/GameModePackets.cpp +++ b/Source/Client/Mode/GameModePackets.cpp @@ -3794,8 +3794,8 @@ void CGameMode::ShowSpecialPopup(int popupId) { std::string text; switch (popup->m_messageId) { case 0: - for (const std::string& description : popup->m_descriptions) { - text = RemoveTextColors(description.c_str()); + for (auto description = popup->m_descriptions.begin(); description != popup->m_descriptions.end(); ++description) { + text = RemoveTextColors(description->c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), popup->m_color, 0, 0, 0); } break; @@ -3805,8 +3805,8 @@ void CGameMode::ShowSpecialPopup(int popupId) { } [[fallthrough]]; case 2: - for (const std::string& description : popup->m_descriptions) { - text = RemoveTextColors(description.c_str()); + for (auto description = popup->m_descriptions.begin(); description != popup->m_descriptions.end(); ++description) { + text = RemoveTextColors(description->c_str()); g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast(text.c_str()), popup->m_color, 0, 0, 0); } if (UIWindow* popupWindow = g_windowMgr.EnsureWindow(WID_BALLOONOPENBTN)) {