Skip to content

Commit

Permalink
Fix command serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Jun 8, 2024
1 parent bd58a0f commit d1ef3bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tesseract_environment/src/command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ template <class Archive>
void save(Archive& ar, const CommandType& g, const unsigned int /*version*/)
{
int value = static_cast<int>(g);
ar &= BOOST_SERIALIZATION_NVP(value);
ar& BOOST_SERIALIZATION_NVP(value);
}

template <class Archive>
void load(Archive& ar, CommandType& g, const unsigned int /*version*/)
{
int value = 0;
ar &= BOOST_SERIALIZATION_NVP(value);
ar& BOOST_SERIALIZATION_NVP(value);
g = static_cast<CommandType>(value);
}

Expand Down

0 comments on commit d1ef3bc

Please sign in to comment.