Saveload: Fix upstream chunk load state not be cleared before load

This commit is contained in:
Jonathan G Rennison
2023-03-07 18:12:11 +00:00
parent 8dca681c8c
commit 2acc00ab13
2 changed files with 9 additions and 0 deletions

View File

@@ -2128,6 +2128,12 @@ void SlSaveChunkChunkByID(uint32 id)
SlSaveChunk(*ch);
}
/** Reset state prior to a load */
void SlResetLoadState()
{
_next_offs = 0;
}
SaveLoadTable SaveLoadHandler::GetLoadDescription() const
{
assert(this->load_description.has_value());