summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-27 04:46:11 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-27 04:46:11 -0300
commit6fca282e934531255efbddd80b7748e1ab35d860 (patch)
tree3405ab3117e4b5e425c6e997c73011415a7524af
parent006c07ab22988d149b2d5802a3319152d0f6b392 (diff)
downloadserverdata-6fca282e934531255efbddd80b7748e1ab35d860.tar.gz
serverdata-6fca282e934531255efbddd80b7748e1ab35d860.tar.bz2
serverdata-6fca282e934531255efbddd80b7748e1ab35d860.tar.xz
serverdata-6fca282e934531255efbddd80b7748e1ab35d860.zip
Fix a deference
-rw-r--r--npc/functions/bitwise.txt6
1 files changed, 3 insertions, 3 deletions
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));
}