summaryrefslogtreecommitdiff
path: root/npc/functions/bitwise.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/bitwise.txt')
-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));
}