Просмотр исходного кода

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1101 54d463be-8e91-2dee-dedb-b68131a5f0ec

(no author) 20 лет назад
Родитель
Сommit
a6330fd404
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/map/script.c

+ 1 - 1
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);
 	}