File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -416,14 +416,14 @@ namespace bw
416416 entity.position = entityInfo.at (" position" );
417417 entity.rotation = Nz::DegreeAnglef (float (entityInfo.at (" rotation" )));
418418
419- for (auto &&[propertyName, propertyData] : entityInfo[" properties" ].items ())
419+ for (auto && [propertyName, propertyData] : entityInfo[" properties" ].items ())
420420 {
421421 bool isArray = propertyData.value <bool >(" isArray" , false );
422422 PropertyInternalType propertyType = ParsePropertyInternalType (propertyData.at (" type" ));
423423 auto && value = propertyData.at (" value" );
424424
425425 // Waiting for template lambda in C++20
426- auto Unserialize = [&](auto dummyType)
426+ auto Unserialize = [&, propertyName = propertyName ](auto dummyType)
427427 {
428428 using T = std::decay_t <decltype (dummyType)>;
429429
You can’t perform that action at this time.
0 commit comments