Skip to content
Permalink
Browse files

Fix formspec version backup in prepends losing data

  • Loading branch information
rubenwardy committed Sep 15, 2019
1 parent 23bd563 commit 1ea9bfc6f75316e8de852c3a529541b5c800b367
Showing with 1 addition and 1 deletion.
  1. +1 −1 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, ']');

0 comments on commit 1ea9bfc

Please sign in to comment.
You can’t perform that action at this time.