Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix formspec version backup in prepends losing data
  • Loading branch information
rubenwardy committed Sep 15, 2019
1 parent 23bd563 commit 1ea9bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/guiFormSpecMenu.cpp
Expand Up @@ -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, ']');
Expand Down

0 comments on commit 1ea9bfc

Please sign in to comment.