mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 08:10:11 +00:00
Merge pull request #3583 from chrhasse/develop
Fix catching polymorphic type by value error
This commit is contained in:
commit
11f7a432c4
@ -471,7 +471,7 @@ void World::loadFromLevelDat(QByteArray data)
|
||||
auto &WorldGen_val = val.at("WorldGenSettings");
|
||||
randomSeed = read_long(WorldGen_val, "seed");
|
||||
}
|
||||
catch (std::out_of_range) {}
|
||||
catch (const std::out_of_range &) {}
|
||||
if(!randomSeed) {
|
||||
randomSeed = read_long(val, "RandomSeed");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user