diff options
author | Weblate <42@minetest.ru> | 2013-04-18 20:00:16 +0200 |
---|---|---|
committer | Weblate <42@minetest.ru> | 2013-04-18 20:00:16 +0200 |
commit | 9e6376bd95ba9309365b39b878ab2f499776437a (patch) | |
tree | a354a250daedf036cc36e33d3d1ebb9fafc4ac27 /src/guiFormSpecMenu.cpp | |
parent | e385af7cc01d156164b85d10b00a7047a5372e66 (diff) | |
parent | e60eb32050a44d344795e4a1515a56038bb97e02 (diff) | |
download | minetest-9e6376bd95ba9309365b39b878ab2f499776437a.tar.gz minetest-9e6376bd95ba9309365b39b878ab2f499776437a.tar.bz2 minetest-9e6376bd95ba9309365b39b878ab2f499776437a.zip |
Merge remote branch 'origin/master'
Diffstat (limited to 'src/guiFormSpecMenu.cpp')
-rw-r--r-- | src/guiFormSpecMenu.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 1754422d0..6ada77698 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -581,6 +581,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize) size.Y-rect.getHeight()-5); const wchar_t *text = wgettext("Left click: Move all items, Right click: Move single item"); Environment->addStaticText(text, rect, false, true, this, 256); + delete[] text; changeCtype("C"); } // If there's fields, add a Proceed button @@ -604,7 +605,9 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize) v2s32 size = DesiredRect.getSize(); rect = core::rect<s32>(size.X/2-70, pos.Y, (size.X/2-70)+140, pos.Y+30); - Environment->addButton(rect, this, 257, wgettext("Proceed")); + wchar_t* text = wgettext("Proceed"); + Environment->addButton(rect, this, 257, text); + delete[] text; } changeCtype("C"); } |