projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23bd563
)
Fix formspec version backup in prepends losing data
author
rubenwardy
<rw@rubenwardy.com>
Sun, 15 Sep 2019 15:56:11 +0000
(16:56 +0100)
committer
rubenwardy
<rw@rubenwardy.com>
Sun, 15 Sep 2019 15:56:11 +0000
(16:56 +0100)
src/gui/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/gui/guiFormSpecMenu.cpp
b/src/gui/guiFormSpecMenu.cpp
index f291b4e877b09747bf4d9632ba4c958638799274..53b8ae848655059a2039ce5e9c7766acdd840e1d 100644
(file)
--- a/
src/gui/guiFormSpecMenu.cpp
+++ b/
src/gui/guiFormSpecMenu.cpp
@@
-2651,7
+2651,7
@@
void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
if (enable_prepends) {
// Backup the coordinates so that prepends can use the coordinates of choice.
bool rc_backup = mydata.real_coordinates;
-
bool
version_backup = m_formspec_version;
+
u16
version_backup = m_formspec_version;
mydata.real_coordinates = false; // Old coordinates by default.
std::vector<std::string> prepend_elements = split(m_formspec_prepend, ']');