Merge pull request #3583 from chrhasse/develop

Fix catching polymorphic type by value error
This commit is contained in:
Petr Mrázek 2021-02-07 02:16:59 +01:00 committed by GitHub
commit 11f7a432c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -471,7 +471,7 @@ void World::loadFromLevelDat(QByteArray data)
auto &WorldGen_val = val.at("WorldGenSettings"); auto &WorldGen_val = val.at("WorldGenSettings");
randomSeed = read_long(WorldGen_val, "seed"); randomSeed = read_long(WorldGen_val, "seed");
} }
catch (std::out_of_range) {} catch (const std::out_of_range &) {}
if(!randomSeed) { if(!randomSeed) {
randomSeed = read_long(val, "RandomSeed"); randomSeed = read_long(val, "RandomSeed");
} }