Commit 6a17467e authored by Stephen Anthony's avatar Stephen Anthony
Browse files

Slight space savings for load/save state.

parent ae3df819
......@@ -27,7 +27,7 @@
#include "StateManager.hxx"
#define STATE_HEADER "05090101state"
#define STATE_HEADER "05090902state"
// #define MOVIE_HEADER "03030000movie"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
......
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment