Fix the endswitch opcode

This commit is contained in:
ineed bots 2023-09-05 23:52:16 -06:00
parent 601a661fe0
commit bd128a1366

View File

@ -2220,7 +2220,7 @@ namespace codsrc
void OP_endswitch(game::scriptInstance_t inst) void OP_endswitch(game::scriptInstance_t inst)
{ {
game::gCaseCount[inst] = game::Scr_ReadUnsignedShort(inst, &game::gFs[inst].pos); game::gCaseCount[inst] = game::Scr_ReadUnsignedShort(inst, &game::gFs[inst].pos);
game::Scr_ReadData(inst, &game::gFs[inst].pos, 2 * game::gCaseCount[inst]); game::Scr_ReadData(inst, &game::gFs[inst].pos, sizeof(unsigned int) * 2 * game::gCaseCount[inst]); // Scr_ReadIntArray
} }
void OP_vector(game::scriptInstance_t inst) void OP_vector(game::scriptInstance_t inst)