Browse Source

Fixed gcc warning on script.c, getnpcid

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15823 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 years ago
parent
commit
66030c2dc6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/script.c

+ 1 - 1
src/map/script.c

@@ -6359,7 +6359,7 @@ BUILDIN_FUNC(getcharid)
 BUILDIN_FUNC(getnpcid)
 BUILDIN_FUNC(getnpcid)
 {
 {
 	int num = script_getnum(st,2);
 	int num = script_getnum(st,2);
-	struct npc_data* nd;
+	struct npc_data* nd = NULL;
 
 
 	if( script_hasdata(st,3) )
 	if( script_hasdata(st,3) )
 	{// unique npc name
 	{// unique npc name