From 90d212153165d46e92f79fc94e5a82bd7a7c9fe5 Mon Sep 17 00:00:00 2001 From: Mitron57 Date: Sun, 9 Jul 2023 16:09:03 +0400 Subject: [PATCH] Fix segfault bug --- cpp/Platform.Data/ILinksExtensions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/Platform.Data/ILinksExtensions.h b/cpp/Platform.Data/ILinksExtensions.h index 3c2dd3d..8ce3ae4 100644 --- a/cpp/Platform.Data/ILinksExtensions.h +++ b/cpp/Platform.Data/ILinksExtensions.h @@ -48,7 +48,7 @@ typename TStorage::LinkAddressType deletedLinkAddress; storage.Delete(restriction, [&deletedLinkAddress, $continue] (const typename TStorage::LinkType& before, const typename TStorage::LinkType& after) { - deletedLinkAddress = after[0]; + deletedLinkAddress = before[0]; return $continue; }); return deletedLinkAddress;