From: Rui Date: Fri, 16 Jun 2017 05:17:30 +0000 (+0900) Subject: Fix deserialization of ItemDefinition (#5995) X-Git-Tag: 5.0.0~1098 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=49d6e5f4ab79078d1608c22a9cce286b3cf86eb9;p=oweals%2Fminetest.git Fix deserialization of ItemDefinition (#5995) --- 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