mirror of
https://github.com/vcmi/vcmi.git
synced 2025-10-08 23:22:25 +02:00
fix for c++ 2011
This commit is contained in:
@@ -346,7 +346,8 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
for (const auto & [keyStr, jsonVal] : getCurrent()[fieldName].Struct())
|
||||
const auto & node = getCurrent()[fieldName].Struct();
|
||||
for (const auto & [keyStr, jsonVal] : node)
|
||||
{
|
||||
LIBRARY->identifiers()->requestIdentifier(jsonVal.getModScope(), Key::entityType(), keyStr, [&value, jsonVal](int32_t index) {
|
||||
value[Key(index)] = jsonVal.Integer(); // TODO: only int supported yet
|
||||
|
Reference in New Issue
Block a user