diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-04-12 10:24:32 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-04-12 10:24:32 +0000 |
commit | a3c3030b2ec08cde70b8d10759bd863834bd6a35 (patch) | |
tree | 96f0c406132267db9c555301f8ef139e43facef9 /src/map/script.c | |
parent | 31f066e114c9d10f0e1b8257a524d2779736261a (diff) | |
download | hercules-a3c3030b2ec08cde70b8d10759bd863834bd6a35.tar.gz hercules-a3c3030b2ec08cde70b8d10759bd863834bd6a35.tar.bz2 hercules-a3c3030b2ec08cde70b8d10759bd863834bd6a35.tar.xz hercules-a3c3030b2ec08cde70b8d10759bd863834bd6a35.zip |
Fixed SuccessRemoveCards removing Armor Enchant. (bugreport:4014)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14282 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index a8f024deb..d18085a39 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -9768,8 +9768,10 @@ BUILDIN_FUNC(successremovecards) item_tmp.id=0,item_tmp.nameid=sd->status.inventory[i].nameid; item_tmp.equip=0,item_tmp.identify=1,item_tmp.refine=sd->status.inventory[i].refine; item_tmp.attribute=sd->status.inventory[i].attribute,item_tmp.expire_time=sd->status.inventory[i].expire_time; - for (j = 0; j < MAX_SLOTS; j++) + for (j = 0; j < sd->inventory_data[i]->slot; j++) item_tmp.card[j]=0; + for (j = sd->inventory_data[i]->slot; j < MAX_SLOTS; j++) + item_tmp.card[j]=sd->status.inventory[i].card[j]; //Logs items, got from (N)PC scripts [Lupus] if(log_config.enable_logs&0x40) @@ -9827,8 +9829,10 @@ BUILDIN_FUNC(failedremovecards) item_tmp.id=0,item_tmp.nameid=sd->status.inventory[i].card[c]; item_tmp.equip=0,item_tmp.identify=1,item_tmp.refine=0; item_tmp.attribute=0,item_tmp.expire_time=0; - for (j = 0; j < MAX_SLOTS; j++) + for (j = 0; j < sd->inventory_data[i]->slot; j++) item_tmp.card[j]=0; + for (j = sd->inventory_data[i]->slot; j < MAX_SLOTS; j++) + item_tmp.card[j]=sd->status.inventory[i].card[j]; //Logs items, got from (N)PC scripts [Lupus] if(log_config.enable_logs&0x40) |