Skip to content

Commit

Permalink
Fix deserialization of ItemDefinition (#5995)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui authored and nerzhul committed Jun 16, 2017
1 parent 212945c commit 49d6e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/itemdef.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 49d6e5f

Please sign in to comment.