From 49d6e5f4ab79078d1608c22a9cce286b3cf86eb9 Mon Sep 17 00:00:00 2001 From: Rui Date: Fri, 16 Jun 2017 14:17:30 +0900 Subject: Fix deserialization of ItemDefinition (#5995) --- src/itemdef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/itemdef.cpp') 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 -- cgit v1.2.3