diff options
author | Rui <rui.minetest@gmail.com> | 2017-06-16 14:17:30 +0900 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-06-16 07:17:30 +0200 |
commit | 49d6e5f4ab79078d1608c22a9cce286b3cf86eb9 (patch) | |
tree | df6df4c59086e909dfef23af4640e9e2ac7379a9 /src | |
parent | 212945c7a3a1b9873ab4ef54c4d0360c54573185 (diff) | |
download | minetest-49d6e5f4ab79078d1608c22a9cce286b3cf86eb9.tar.gz minetest-49d6e5f4ab79078d1608c22a9cce286b3cf86eb9.tar.bz2 minetest-49d6e5f4ab79078d1608c22a9cce286b3cf86eb9.zip |
Fix deserialization of ItemDefinition (#5995)
Diffstat (limited to 'src')
-rw-r--r-- | src/itemdef.cpp | 2 |
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 |