Saveload: Fix load and load check mixup with upstream chunks

Fixes 690ef6cc
This commit is contained in:
Jonathan G Rennison
2022-12-07 22:08:41 +00:00
parent 2b38022161
commit ce0dddc714

View File

@@ -2139,7 +2139,7 @@ inline void SlRIFFSpringPPCheck(size_t len)
static void SlLoadChunk(const ChunkHandler &ch)
{
if (ch.special_proc != nullptr) {
if (ch.special_proc(ch.id, CSLSO_PRE_LOADCHECK)) return;
if (ch.special_proc(ch.id, CSLSO_PRE_LOAD)) return;
}
byte m = SlReadByte();
@@ -2206,7 +2206,7 @@ static void SlLoadChunk(const ChunkHandler &ch)
static void SlLoadCheckChunk(const ChunkHandler *ch)
{
if (ch && ch->special_proc != nullptr) {
if (ch->special_proc(ch->id, CSLSO_PRE_LOAD)) return;
if (ch->special_proc(ch->id, CSLSO_PRE_LOADCHECK)) return;
}
byte m = SlReadByte();