mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-04-20 13:35:43 +00:00
Fix the endswitch opcode
This commit is contained in:
parent
601a661fe0
commit
bd128a1366
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user