summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-02-16 00:38:57 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-02-16 00:38:57 +0000
commitcc766f1559d9ce99e07aaf9ee3952bc146788470 (patch)
tree5bb9fcbf6bd0f007b9aeb0b5c7729099bb474745 /src
parent666bfbfc607bcd32f580c0356f091678cfcdbe49 (diff)
downloadhercules-cc766f1559d9ce99e07aaf9ee3952bc146788470.tar.gz
hercules-cc766f1559d9ce99e07aaf9ee3952bc146788470.tar.bz2
hercules-cc766f1559d9ce99e07aaf9ee3952bc146788470.tar.xz
hercules-cc766f1559d9ce99e07aaf9ee3952bc146788470.zip
Fixed card remover commands not preserving item rental time.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13531 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 6a008c20f..e38672e16 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9518,7 +9518,7 @@ BUILDIN_FUNC(successremovecards)
struct item item_tmp;
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=0;
+ 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++)
item_tmp.card[j]=0;
@@ -9607,7 +9607,7 @@ BUILDIN_FUNC(failedremovecards)
struct item item_tmp;
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=0;
+ item_tmp.attribute=sd->status.inventory[i].attribute,item_tmp.expire_time=sd->status.inventory[i].expire_time;
//Logs items, got from (N)PC scripts [Lupus]
if(log_config.enable_logs&0x40)