Fix typo in a comment

This commit is contained in:
anton-kl
2024-02-04 16:59:56 +00:00
committed by Mindaugas Vinkelis
parent b714459a2b
commit 4dcdd594da

View File

@@ -39,7 +39,7 @@ private:
template<typename S> template<typename S>
void serialize(S& s) void serialize(S& s)
{ {
// forward/backward compatibility for monsters // forward/backward compatibility for weapons
s.ext(*this, bitsery::ext::Growable{}, [](S& s, Weapon& o1) { s.ext(*this, bitsery::ext::Growable{}, [](S& s, Weapon& o1) {
s.text1b(o1.name, 20); s.text1b(o1.name, 20);
s.value2b(o1.damage); s.value2b(o1.damage);
@@ -103,8 +103,6 @@ main()
// create buffer to store data to // create buffer to store data to
Buffer buffer{}; Buffer buffer{};
// since we're using different configuration, we cannot use quickSerialization
// function.
auto writtenSize = bitsery::quickSerialization<OutputAdapter>(buffer, data); auto writtenSize = bitsery::quickSerialization<OutputAdapter>(buffer, data);
MyTypes::Monster res{}; MyTypes::Monster res{};