summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hexen/p_acs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hexen/p_acs.c b/src/hexen/p_acs.c
index f49f2840..618bbd05 100644
--- a/src/hexen/p_acs.c
+++ b/src/hexen/p_acs.c
@@ -1280,7 +1280,7 @@ static int CmdDecWorldVar(void)
static int CmdGoto(void)
{
- PCodePtr = (int *) (ActionCodeBase + *PCodePtr);
+ PCodePtr = (int *) (ActionCodeBase + LONG(*PCodePtr));
return SCRIPT_CONTINUE;
}
@@ -1288,7 +1288,7 @@ static int CmdIfGoto(void)
{
if (Pop() != 0)
{
- PCodePtr = (int *) (ActionCodeBase + *PCodePtr);
+ PCodePtr = (int *) (ActionCodeBase + LONG(*PCodePtr));
}
else
{