mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix formspec version backup in prepends losing data
This commit is contained in:
@@ -2651,7 +2651,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
|
|||||||
if (enable_prepends) {
|
if (enable_prepends) {
|
||||||
// Backup the coordinates so that prepends can use the coordinates of choice.
|
// Backup the coordinates so that prepends can use the coordinates of choice.
|
||||||
bool rc_backup = mydata.real_coordinates;
|
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.
|
mydata.real_coordinates = false; // Old coordinates by default.
|
||||||
|
|
||||||
std::vector<std::string> prepend_elements = split(m_formspec_prepend, ']');
|
std::vector<std::string> prepend_elements = split(m_formspec_prepend, ']');
|
||||||
|
Reference in New Issue
Block a user