From 74fbc5fa28326ab9008927542e40a1369fcc629a Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Sat, 28 Dec 2019 20:07:15 +0100
Subject: [PATCH] Lazy value proxy abstraction returns cached value only

---
 alib2abstraction/src/abstraction/PackingAbstraction.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/alib2abstraction/src/abstraction/PackingAbstraction.cpp b/alib2abstraction/src/abstraction/PackingAbstraction.cpp
index d0c2f59d04..32f689daed 100644
--- a/alib2abstraction/src/abstraction/PackingAbstraction.cpp
+++ b/alib2abstraction/src/abstraction/PackingAbstraction.cpp
@@ -30,7 +30,7 @@ abstraction::ParamQualifiers::ParamQualifierSet PackingAbstractionImpl::LazyValu
 std::shared_ptr < abstraction::Value > PackingAbstractionImpl::LazyValue::getProxyAbstraction ( ) {
 	if ( cache == nullptr )
 		cache = this->getLifeReference ( )->eval ( );
-	return cache->getProxyAbstraction ( );
+	return cache;
 }
 
 const std::shared_ptr < abstraction::OperationAbstraction > & PackingAbstractionImpl::LazyValue::getLifeReference ( ) const {
-- 
GitLab