From 6fca282e934531255efbddd80b7748e1ab35d860 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 27 May 2021 04:46:11 -0300 Subject: Fix a deference --- npc/functions/bitwise.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'npc/functions') diff --git a/npc/functions/bitwise.txt b/npc/functions/bitwise.txt index 7d0047e89..88938eef9 100644 --- a/npc/functions/bitwise.txt +++ b/npc/functions/bitwise.txt @@ -143,7 +143,7 @@ function script set_nibble { Exception("Invalid SNibble: "+getarg(2), RB_DEFAULT); } - return bitwise_set(.@v, .@m, .@s, getarg(1)); + return bitwise_set(getarg(0), .@m, .@s, getarg(1)); } // A Byte can go up to 255. There are 3 bytes. The forth can go up to 127. @@ -163,7 +163,7 @@ function script set_byte { Exception("Invalid SByte: "+getarg(2), RB_DEFAULT); } - return bitwise_set(.@v, .@m, .@s, getarg(1)); + return bitwise_set(getarg(0), .@m, .@s, getarg(1)); } // A Bitword can go up to 65535 and is fixed in position to handle Soul EXP. @@ -171,6 +171,6 @@ function script set_byte { function script set_bitword { .@v=getarg(0); - return bitwise_set(.@v, 0xFFFF, 0, getarg(1)); + return bitwise_set(getarg(0), 0xFFFF, 0, getarg(1)); } -- cgit v1.2.3-70-g09d2