flags: Unserializing old checkpoints before the introduction
of the Initialized flag would break, set Initialized for events upon unserialization.
This commit is contained in:
@@ -238,7 +238,9 @@ Event::unserialize(Checkpoint *cp, const string §ion)
|
||||
// object itself (since they aren't immediately true)
|
||||
short _flags;
|
||||
UNSERIALIZE_SCALAR(_flags);
|
||||
assert(initialized());
|
||||
flags = _flags;
|
||||
flags.set(Initialized);
|
||||
|
||||
bool wasScheduled = flags.isSet(Scheduled) && !flags.isSet(Squashed);
|
||||
flags.clear(Squashed | Scheduled);
|
||||
|
||||
Reference in New Issue
Block a user