summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-13 04:52:20 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-13 04:52:20 +0000
commitcb61f0d4774837c4fe5004546f190430165b5d2c (patch)
tree0ab392b9f07d88f8dd9408073da55ff6a6c98d3a /src/map
parent9d65ce5dd14b7758be4eafffcea61f78feb38fa2 (diff)
downloadhercules-cb61f0d4774837c4fe5004546f190430165b5d2c.tar.gz
hercules-cb61f0d4774837c4fe5004546f190430165b5d2c.tar.bz2
hercules-cb61f0d4774837c4fe5004546f190430165b5d2c.tar.xz
hercules-cb61f0d4774837c4fe5004546f190430165b5d2c.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1101 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index a5e29026d..da7891924 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -5061,13 +5061,13 @@ int buildin_agitcheck(struct script_state *st)
struct map_session_data *sd;
int cond;
- sd=script_rid2sd(st);
cond=conv_num(st,& (st->stack->stack_data[st->start+2]));
if(cond == 0) {
if (agit_flag==1) push_val(st->stack,C_INT,1);
if (agit_flag==0) push_val(st->stack,C_INT,0);
} else {
+ sd=script_rid2sd(st);
if (agit_flag==1) pc_setreg(sd,add_str("@agit_flag"),1);
if (agit_flag==0) pc_setreg(sd,add_str("@agit_flag"),0);
}