mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-23 21:51:02 +00:00
Fix optional creation
This commit is contained in:
@@ -177,11 +177,11 @@ namespace utils
|
||||
{
|
||||
if (this->read<bool>())
|
||||
{
|
||||
val = this->read<T>();
|
||||
val.emplace(this->read<T>());
|
||||
}
|
||||
else
|
||||
{
|
||||
val = {};
|
||||
val = std::nullopt;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user