aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui <rui.minetest@gmail.com>2017-06-16 14:17:30 +0900
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-06-16 07:17:30 +0200
commit49d6e5f4ab79078d1608c22a9cce286b3cf86eb9 (patch)
treedf6df4c59086e909dfef23af4640e9e2ac7379a9
parent212945c7a3a1b9873ab4ef54c4d0360c54573185 (diff)
downloadminetest-49d6e5f4ab79078d1608c22a9cce286b3cf86eb9.tar.gz
minetest-49d6e5f4ab79078d1608c22a9cce286b3cf86eb9.tar.bz2
minetest-49d6e5f4ab79078d1608c22a9cce286b3cf86eb9.zip
Fix deserialization of ItemDefinition (#5995)
-rw-r--r--src/itemdef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/itemdef.cpp b/src/itemdef.cpp
index 8eca8cafb..e73246115 100644
--- a/src/itemdef.cpp
+++ b/src/itemdef.cpp
@@ -209,7 +209,7 @@ void ItemDefinition::deSerialize(std::istream &is)
sound_place.name = deSerializeString(is);
sound_place.gain = readF1000(is);
}
- if(version == 3) {
+ if(version >= 3) {
range = readF1000(is);
}
// If you add anything here, insert it primarily inside the try-catch