diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-09-15 16:56:11 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-09-15 16:56:11 +0100 |
commit | 1ea9bfc6f75316e8de852c3a529541b5c800b367 (patch) | |
tree | 1d368147629f7591a62663e0795685febccb81b0 | |
parent | 23bd5630d0a69cba87110d44202573a4d00da56c (diff) | |
download | minetest-1ea9bfc6f75316e8de852c3a529541b5c800b367.tar.gz minetest-1ea9bfc6f75316e8de852c3a529541b5c800b367.tar.bz2 minetest-1ea9bfc6f75316e8de852c3a529541b5c800b367.zip |
Fix formspec version backup in prepends losing data
-rw-r--r-- | src/gui/guiFormSpecMenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index f291b4e87..53b8ae848 100644 --- 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, ']'); |