summaryrefslogtreecommitdiff
path: root/src/guiConfirmMenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guiConfirmMenu.cpp')
-rw-r--r--src/guiConfirmMenu.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/guiConfirmMenu.cpp b/src/guiConfirmMenu.cpp
index 70e33c760..86b230506 100644
--- a/src/guiConfirmMenu.cpp
+++ b/src/guiConfirmMenu.cpp
@@ -116,14 +116,18 @@ void GUIConfirmMenu::regenerateGui(v2u32 screensize)
{
core::rect<s32> rect(0, 0, bw, 30);
rect = rect + v2s32(size.X/2-bw/2-(bw/2+5), size.Y/2-30/2+5 + msg_h/2);
+ wchar_t* text = wgettext("Yes");
Environment->addButton(rect, this, GUI_ID_YES,
- wgettext("Yes"));
+ text);
+ delete[] text;
}
{
core::rect<s32> rect(0, 0, bw, 30);
rect = rect + v2s32(size.X/2-bw/2+(bw/2+5), size.Y/2-30/2+5 + msg_h/2);
+ wchar_t* text = wgettext("No");
Environment->addButton(rect, this, GUI_ID_NO,
- wgettext("No"));
+ text);
+ delete[] text;
}
changeCtype("C");
}