Fix optional creation

This commit is contained in:
momo5502
2024-11-23 17:02:01 +01:00
parent 84a0aed1d9
commit ce6718e932

View File

@@ -177,11 +177,11 @@ namespace utils
{
if (this->read<bool>())
{
val = this->read<T>();
val.emplace(this->read<T>());
}
else
{
val = {};
val = std::nullopt;
}
}