Skip to content

Commit

Permalink
Fixed num not being set when writing to memory archiver in commandthi…
Browse files Browse the repository at this point in the history
…ng_t::ArchiveToMemory
  • Loading branch information
smallmodel committed Sep 30, 2023
1 parent 8c84872 commit cd93158
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/cgame/cg_commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5609,6 +5609,8 @@ void commandthing_t::ArchiveToMemory(MemArchiver& archiver)
m_commandtimes.AddObject(ct);
}
} else {
num = m_commandtimes.NumObjects();

archiver.ArchiveInteger(&num);
m_commandtimes.ClearObjectList();

Expand Down

0 comments on commit cd93158

Please sign in to comment.