Browse 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 19 năm trước cách đây
mục cha
commit
4fe5bc0478
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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]));