summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-02-02 13:28:20 +0000
committerJared Adams <jaxad0127@gmail.com>2009-02-02 13:28:20 +0000
commite492b188a488a36219a60263af756a8857957da6 (patch)
tree63053303c3c727bf906f37ad43dfbc4761adf0fe /npc/functions
parentdc245e0bac478710c688901de17b96ec53066fee (diff)
downloadserverdata-e492b188a488a36219a60263af756a8857957da6.tar.gz
serverdata-e492b188a488a36219a60263af756a8857957da6.tar.bz2
serverdata-e492b188a488a36219a60263af756a8857957da6.tar.xz
serverdata-e492b188a488a36219a60263af756a8857957da6.zip
Fix exploit in banker function
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/banker.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/npc/functions/banker.txt b/npc/functions/banker.txt
index 00a85bab..b10806cc 100644
--- a/npc/functions/banker.txt
+++ b/npc/functions/banker.txt
@@ -66,6 +66,7 @@ D_All:
goto L_Deposit;
L_Deposit:
+ if (zeny < @Ammount) goto L_NoMoney;
set zeny, zeny - @Amount;
set BankAccount, BankAccount + @Amount;
goto L_Balance;