Skip to content

Commit

Permalink
bugfix: script 0081 not checking evtobj status
Browse files Browse the repository at this point in the history
steam 5047948127383237392
  • Loading branch information
palxex committed Apr 17, 2021
1 parent 3e9aad3 commit 351067b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.c
Original file line number Diff line number Diff line change
Expand Up @@ -2374,7 +2374,7 @@ PAL_InterpretInstruction(
x -= PAL_X(gpGlobals->viewport) + PAL_X(gpGlobals->partyoffset);
y -= PAL_Y(gpGlobals->viewport) + PAL_Y(gpGlobals->partyoffset);

if (abs(x) + abs(y * 2) < pScript->rgwOperand[1] * 32 + 16)
if (abs(x) + abs(y * 2) < pScript->rgwOperand[1] * 32 + 16 && gpGlobals->g.lprgEventObject[pScript->rgwOperand[0] - 1].sState > 0)
{
if (pScript->rgwOperand[1] > 0)
{
Expand Down

0 comments on commit 351067b

Please sign in to comment.