mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-06-25 05:41:56 +00:00
Fix the endswitch opcode
This commit is contained in:
@ -2220,7 +2220,7 @@ namespace codsrc
|
||||
void OP_endswitch(game::scriptInstance_t inst)
|
||||
{
|
||||
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)
|
||||
|
Reference in New Issue
Block a user