BAN: Fix function call in Optional

This commit is contained in:
Bananymous 2023-07-21 10:57:46 +03:00
parent b02c486ad0
commit 21c6135ae2
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ namespace BAN
Optional<T>& Optional<T>::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()));