Fix formspec version backup in prepends losing data

This commit is contained in:
rubenwardy 2019-09-15 16:56:11 +01:00
parent 23bd5630d0
commit 1ea9bfc6f7
1 changed files with 1 additions and 1 deletions

View File

@ -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, ']');