Fix deserialization of ItemDefinition (#5995)

This commit is contained in:
Rui 2017-06-16 14:17:30 +09:00 committed by Loïc Blot
parent 212945c7a3
commit 49d6e5f4ab
1 changed files with 1 additions and 1 deletions

View File

@ -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