From 21c6135ae2fed5b853c85920439055844da9b1ac 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()));