summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-11-07 15:29:24 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-11-07 15:29:24 +0000
commit752030de0bf089cb360cd8ccffeb7db278e2504c (patch)
tree8d1a85d9ad7b7a8b4f4bdc109e1046da7143b75d /src/map/status.c
parent5ced9134785c9c5c540eb484c893fe17a4a5bf3f (diff)
downloadhercules-752030de0bf089cb360cd8ccffeb7db278e2504c.tar.gz
hercules-752030de0bf089cb360cd8ccffeb7db278e2504c.tar.bz2
hercules-752030de0bf089cb360cd8ccffeb7db278e2504c.tar.xz
hercules-752030de0bf089cb360cd8ccffeb7db278e2504c.zip
Added a flag to indicate if the script of an autobonus was parsed for the sake of resource saving.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14129 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 6d5733397..de87bb98a 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1856,6 +1856,7 @@ int status_calc_pc_(struct map_session_data* sd, bool first)
if(first && sd->inventory_data[index]->equip_script)
{ //Execute equip-script on login
run_script(sd->inventory_data[index]->equip_script,0,sd->bl.id,0);
+ sd->state.script_parsed |= sd->status.inventory[index].equip;
if (!calculating)
return 1;
}