From a8f31fabd1688e13233edca2da469672df4b5d72 Mon Sep 17 00:00:00 2001 From: nordsoft Date: Sat, 8 Apr 2023 02:41:05 +0400 Subject: [PATCH] Fix bug --- lib/mapObjects/JsonRandom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mapObjects/JsonRandom.cpp b/lib/mapObjects/JsonRandom.cpp index 5b6efc262..8189f6122 100644 --- a/lib/mapObjects/JsonRandom.cpp +++ b/lib/mapObjects/JsonRandom.cpp @@ -145,8 +145,8 @@ namespace JsonRandom for(const auto & element : value.Vector()) { - SecondarySkill id(VLC->modh->identifiers.getIdentifier(value.meta, "skill", loadKey(element, rng, defaultSkills)).get()); - ret[id] = loadValue(value, rng); + SecondarySkill id(VLC->modh->identifiers.getIdentifier(element.meta, "skill", loadKey(element, rng, defaultSkills)).get()); + ret[id] = loadValue(element, rng); } } return ret;