From edf2075b1e88266b5090264a5fa44dae8adc787f Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Thu, 22 Apr 2021 15:32:44 +0200 Subject: [PATCH] Pointers fix --- include/gp/utils/pointers.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gp/utils/pointers.hpp b/include/gp/utils/pointers.hpp index 4b050e3..d1aee04 100644 --- a/include/gp/utils/pointers.hpp +++ b/include/gp/utils/pointers.hpp @@ -36,7 +36,7 @@ namespace gp { unique_ptr cast() { auto save = data; data = nullptr; - return unique_ptr(safe, owner); + return unique_ptr(save, owner); } T* operator->() {