From cb61f0d4774837c4fe5004546f190430165b5d2c Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> Date: Sun, 13 Feb 2005 04:52:20 +0000 Subject: git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1101 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3-70-g09d2