Skip to content

Commit 1ea9bfc

Browse files
committedSep 15, 2019
Fix formspec version backup in prepends losing data
1 parent 23bd563 commit 1ea9bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/gui/guiFormSpecMenu.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2651,7 +2651,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
26512651
if (enable_prepends) {
26522652
// Backup the coordinates so that prepends can use the coordinates of choice.
26532653
bool rc_backup = mydata.real_coordinates;
2654-
bool version_backup = m_formspec_version;
2654+
u16 version_backup = m_formspec_version;
26552655
mydata.real_coordinates = false; // Old coordinates by default.
26562656

26572657
std::vector<std::string> prepend_elements = split(m_formspec_prepend, ']');

0 commit comments

Comments
 (0)
Please sign in to comment.