Fix potential data loss in state save file.

This commit is contained in:
Stephen Anthony 2024-08-16 12:56:36 -02:30
parent b74c66a82e
commit d64ff2e5b7
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ BusTransactionQueue& BusTransactionQueue::reset()
bool BusTransactionQueue::save(Serializer& out) const
{
try {
out.putInt(myQueueSize);
out.putLong(myQueueSize);
out.putShort(myNextInjectAddress);
out.putLong(myTimestamp);
@ -90,7 +90,7 @@ bool BusTransactionQueue::load(Serializer& in)
try {
reset();
myQueueSize = in.getInt();
myQueueSize = in.getLong();
myNextInjectAddress = in.getShort();
myTimestamp = in.getLong();