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, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 5db1502c1..9c55f5d9b 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2826,7 +2826,7 @@ int pc_additem(struct map_session_data *sd,struct item *item_data,int amount)
data = itemdb_search(item_data->nameid);
w = data->weight*amount;
- if(w > sd->max_weight - sd->weight)
+ if(sd->weight + w > sd->max_weight)
return 2;
i = MAX_INVENTORY;