summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2008-11-22 22:29:51 -0700
committerFate <fate-tmw@googlemail.com>2008-11-22 22:29:51 -0700
commit8678e872c4a8f5ce67f135bf2f5e6b44b4ba2997 (patch)
tree6bf70c6c568b2e4f72aa830c60825ce1f6bb224b /src/map/script.c
parentc70aa417cdc1ef4b475131bdda14a3aca4135577 (diff)
downloadtmwa-8678e872c4a8f5ce67f135bf2f5e6b44b4ba2997.tar.gz
tmwa-8678e872c4a8f5ce67f135bf2f5e6b44b4ba2997.tar.bz2
tmwa-8678e872c4a8f5ce67f135bf2f5e6b44b4ba2997.tar.xz
tmwa-8678e872c4a8f5ce67f135bf2f5e6b44b4ba2997.zip
Recompute character status after `nude' script command
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 8b971a9..df033f9 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -5792,7 +5792,7 @@ int buildin_specialeffect2(struct script_state *st)
int buildin_nude(struct script_state *st)
{
- struct map_session_data *sd=script_rid2sd(st);
+ struct map_session_data *sd=script_rid2sd(st);
int i;
if(sd==NULL)
@@ -5800,7 +5800,8 @@ int buildin_nude(struct script_state *st)
for(i=0;i<11;i++)
if(sd->equip_index[i] >= 0)
- pc_unequipitem(sd,sd->equip_index[i],1);
+ pc_unequipitem(sd,sd->equip_index[i], i);
+ pc_calcstatus(sd, 0);
return 0;
}