summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-29 21:31:36 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-29 21:31:36 +0000
commit5baa12ea4a48b09cfc2007ec5c1f05f60a92fd45 (patch)
tree028b0dca8498480d96997c08c649ca7547b37874 /src/map/pc.c
parent71201030aedb473d67f15c4ab72ba21c60cca30b (diff)
downloadhercules-5baa12ea4a48b09cfc2007ec5c1f05f60a92fd45.tar.gz
hercules-5baa12ea4a48b09cfc2007ec5c1f05f60a92fd45.tar.bz2
hercules-5baa12ea4a48b09cfc2007ec5c1f05f60a92fd45.tar.xz
hercules-5baa12ea4a48b09cfc2007ec5c1f05f60a92fd45.zip
* Collection of random insignificant changes.
- Added progress indication on map-server shutdown when objects are removed from maps, as it takes significant amount of time to complete. - Moved ers_free in db_obj_vclear, so that the node pointer is not used for comparison after it has been freed. - Some documentation of shop packets. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14639 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index bb703a208..42f8b07c8 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3210,6 +3210,7 @@ int pc_checkadditem(struct map_session_data *sd,int nameid,int amount)
return ADDITEM_NEW;
for(i=0;i<MAX_INVENTORY;i++){
+ // FIXME: This does not consider the checked item's cards, thus could check a wrong slot for stackability.
if(sd->status.inventory[i].nameid==nameid){
if(sd->status.inventory[i].amount+amount > MAX_AMOUNT)
return ADDITEM_OVERAMOUNT;