summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 87f05f197..62a875e13 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5399,6 +5399,8 @@ int pc_setparam(struct map_session_data *sd,int type,int val)
sd->status.status_point = val;
break;
case SP_ZENY:
+ if( val < 0 )
+ return 0;// can't set negative zeny
sd->status.zeny = cap_value(val, 0, MAX_ZENY);
break;
case SP_BASEEXP: