summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-15 02:25:34 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-15 02:25:34 +0000
commit87a5c390724a5df7bcbc130d2c51affbbe23ff73 (patch)
tree85ba3787f9681db5eec27f3e33d3b4714e0e310a /src/map/pc.c
parentd85abed850f8de77802fde7da04da4353672382f (diff)
downloadhercules-87a5c390724a5df7bcbc130d2c51affbbe23ff73.tar.gz
hercules-87a5c390724a5df7bcbc130d2c51affbbe23ff73.tar.bz2
hercules-87a5c390724a5df7bcbc130d2c51affbbe23ff73.tar.xz
hercules-87a5c390724a5df7bcbc130d2c51affbbe23ff73.zip
Follow up r16926, fixed a horrid typo (wrong order; didn't notice the warning in the console T_T shame on me); special thanks to mkbu95 for pointing it out!
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16927 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 6b757d20c..5da11f4a4 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3621,7 +3621,7 @@ int pc_paycash(struct map_session_data *sd, int price, int points)
{
char output[128];
int cash;
- nullpo_retr(sd,-1);
+ nullpo_retr(-1,sd);
points = cap_value(points,-MAX_ZENY,MAX_ZENY); //prevent command UB
if( price < 0 || points < 0 )
@@ -3658,7 +3658,7 @@ int pc_paycash(struct map_session_data *sd, int price, int points)
int pc_getcash(struct map_session_data *sd, int cash, int points)
{
char output[128];
- nullpo_retr(sd,-1);
+ nullpo_retr(-1,sd);
cash = cap_value(cash,-MAX_ZENY,MAX_ZENY); //prevent command UB
points = cap_value(points,-MAX_ZENY,MAX_ZENY); //prevent command UB