From 5411c5aa4ab880e7f435356778108c70f1a4f177 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 21 Jul 2023 10:57:46 +0300 Subject: [PATCH] BAN: Fix function call in Optional --- BAN/include/BAN/Optional.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BAN/include/BAN/Optional.h b/BAN/include/BAN/Optional.h index 10dc2d7c8f..5a1845f87d 100644 --- a/BAN/include/BAN/Optional.h +++ b/BAN/include/BAN/Optional.h @@ -94,7 +94,7 @@ namespace BAN Optional& Optional::operator=(Optional&& other) { clear(); - if (other.has_value) + if (other.has_value()) { m_has_value = true; new (m_storage) T(BAN::move(other.release_value()));