Fixed incorrect help text for the second button in GuiMsgBox.

This commit is contained in:
Leon Styhre 2020-10-20 21:40:53 +02:00
parent 3e8a5391e1
commit 9ca948e145

View file

@ -37,7 +37,7 @@ GuiMsgBox::GuiMsgBox(Window* window, const HelpStyle& helpstyle, const std::stri
(mWindow, name1, name1, std::bind(&GuiMsgBox::deleteMeAndCall, this, func1)));
if (!name2.empty())
mButtons.push_back(std::make_shared<ButtonComponent>
(mWindow, name2, name3, std::bind(&GuiMsgBox::deleteMeAndCall, this, func2)));
(mWindow, name2, name2, std::bind(&GuiMsgBox::deleteMeAndCall, this, func2)));
if (!name3.empty())
mButtons.push_back(std::make_shared<ButtonComponent>
(mWindow, name3, name3, std::bind(&GuiMsgBox::deleteMeAndCall, this, func3)));