Browse Source

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://svn.code.sf.net/p/rathena/svn/trunk@16927 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 12 years ago
parent
commit
3a74e2be4f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/map/pc.c

+ 2 - 2
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