Saveload: Fix load and load check mixup with upstream chunks

Fixes 690ef6cc
pull/461/head
Jonathan G Rennison 1 year ago
parent 2b38022161
commit ce0dddc714

@ -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();

Loading…
Cancel
Save