diff options
author | Petr Mrázek <peterix@users.noreply.github.com> | 2021-02-07 02:16:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-07 02:16:59 +0100 |
commit | 11f7a432c4d83c451edeee0805275db8ef9c594b (patch) | |
tree | 45e6939b4af47492c3c40469713a1e9f771b5e4e | |
parent | 75c14990e556aac2d0cf1732420024d8cfb87117 (diff) | |
parent | 047546c59ef2ae143e6207c5f8043e0f1d5b33bd (diff) | |
download | PrismLauncher-11f7a432c4d83c451edeee0805275db8ef9c594b.tar.gz PrismLauncher-11f7a432c4d83c451edeee0805275db8ef9c594b.tar.bz2 PrismLauncher-11f7a432c4d83c451edeee0805275db8ef9c594b.zip |
Merge pull request #3583 from chrhasse/develop
Fix catching polymorphic type by value error
-rw-r--r-- | api/logic/minecraft/World.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/minecraft/World.cpp b/api/logic/minecraft/World.cpp index ad06bb83..c5275c76 100644 --- a/api/logic/minecraft/World.cpp +++ b/api/logic/minecraft/World.cpp @@ -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"); } |