mirror of
https://github.com/fraillt/bitsery.git
synced 2026-06-08 08:13:56 +00:00
Fix typo in a comment
This commit is contained in:
committed by
Mindaugas Vinkelis
parent
b714459a2b
commit
4dcdd594da
@@ -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{};
|
||||||
|
|||||||
Reference in New Issue
Block a user