BAN: Fix function call in Optional

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

View File

@ -94,7 +94,7 @@ namespace BAN
Optional<T>& Optional<T>::operator=(Optional&& other) Optional<T>& Optional<T>::operator=(Optional&& other)
{ {
clear(); clear();
if (other.has_value) if (other.has_value())
{ {
m_has_value = true; m_has_value = true;
new (m_storage) T(BAN::move(other.release_value())); new (m_storage) T(BAN::move(other.release_value()));