Parcourir la source

- Got rid of the "i might be used uninitialized on this function" warning in `buildin_getpartyleader'

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8199 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex il y a 19 ans
Parent
commit
4fe5bc0478
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/map/script.c

+ 1 - 1
src/map/script.c

@@ -5701,7 +5701,7 @@ int buildin_getpartymember(struct script_state *st)
  */
 int buildin_getpartyleader(struct script_state *st)
 {
-	int party_id, type = 0, i;
+	int party_id, type = 0, i=0;
 	struct party_data *p;
 
 	party_id=conv_num(st,& (st->stack->stack_data[st->start+2]));