From 047546c59ef2ae143e6207c5f8043e0f1d5b33bd Mon Sep 17 00:00:00 2001 From: Christopher Hasse Date: Sat, 6 Feb 2021 18:55:44 -0600 Subject: [PATCH] Fix catching polymorphic type by value error fixes #3579 --- api/logic/minecraft/World.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/logic/minecraft/World.cpp b/api/logic/minecraft/World.cpp index ad06bb83f..c5275c76d 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"); }