Преглед на файлове

Applied Dj-Yhn's fix to 'npcshopattach'

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9792 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage преди 18 години
родител
ревизия
ed7e98e9d3
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/script.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2007/02/05
+	* Applied Dj-Yhn's fix to 'npcshopattach' [ultramage]
 	* Fixed the skill tree not always updating when using @allskill
 	* Probably fixed the target-change on melee attack setting not working.
 	* Moved the deletion of the invincible timer when using skills so that it

+ 1 - 1
src/map/script.c

@@ -12007,7 +12007,7 @@ int buildin_npcshopattach(struct script_state *st)
 	char* npcname = conv_str(st, & (st->stack->stack_data[st->start+2]));
 	int flag = 1;
 
-	if( script_hasdata(st,3) )
+	if( script_hasdata(st,2) )
 		flag = conv_num(st, script_getdata(st,3));
 
 	nd = npc_name2id(npcname);