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;