Skip to content

Commit

Permalink
Fix optional creation
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 committed Nov 23, 2024
1 parent 84a0aed commit ce6718e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/emulator/serialization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ namespace utils
{
if (this->read<bool>())
{
val = this->read<T>();
val.emplace(this->read<T>());
}
else
{
val = {};
val = std::nullopt;
}
}

Expand Down

0 comments on commit ce6718e

Please sign in to comment.