From bfe9a2c3a8b4434f7181217781162b2b0a6ee64c Mon Sep 17 00:00:00 2001 From: William JCM Date: Mon, 4 Oct 2021 18:17:51 +0200 Subject: [PATCH] Profile: fix a crash that happens when restoring a backup. --- src/Profile/Profile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Profile/Profile.cpp b/src/Profile/Profile.cpp index 024be15..d1998ae 100644 --- a/src/Profile/Profile.cpp +++ b/src/Profile/Profile.cpp @@ -355,7 +355,7 @@ auto Profile::getResource(const char* container, Int id) -> Int { return 0; } - static auto predicate = [&id](UnrealPropertyBase::ptr& prop){ + auto predicate = [&id](UnrealPropertyBase::ptr& prop){ auto res_prop = static_cast(prop.get()); return res_prop->id == id; };