Skip to content

Commit c4c907e

Browse files
committed
And again
1 parent 75f6680 commit c4c907e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/CoreLib/Map.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)