Slight space savings for load/save state.

This commit is contained in:
Stephen Anthony 2018-12-19 10:46:16 -03:30
parent ae3df81967
commit 6a17467e99
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@
#include "StateManager.hxx"
#define STATE_HEADER "05090101state"
#define STATE_HEADER "05090902state"
// #define MOVIE_HEADER "03030000movie"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -113,7 +113,7 @@ bool DelayQueueMember<capacity>::save(Serializer& out) const
{
try
{
out.putInt(mySize); //FIXME - check datatype
out.putByte(mySize);
for(uInt8 i = 0; i < mySize; ++i)
{
const Entry& e = myEntries[i];
@ -136,7 +136,7 @@ bool DelayQueueMember<capacity>::load(Serializer& in)
{
try
{
mySize = in.getInt(); //FIXME - check datatype
mySize = in.getByte();
if (mySize > capacity) throw new runtime_error("invalid delay queue size");
for(uInt32 i = 0; i < mySize; ++i)
{