Przeglądaj źródła

- Fixed a crash in unit_useskill_pos2

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5725 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 lat temu
rodzic
commit
0f19e9bbe5
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/unit.c

+ 1 - 0
Changelog-Trunk.txt

@@ -5,6 +5,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.  EV
 GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
 
 2006/03/23
+	* Fixed a crash in unit_useskill_pos2 [Skotlex]
 	* Updated mob_db.sql and item_db.sql to current txt versions. [Skotlex]
 	* Fixed Devotion not properly being cleared on death/near death in some
 	  cases. [Skotlex]

+ 1 - 1
src/map/unit.c

@@ -943,7 +943,7 @@ int unit_skilluse_pos2( struct block_list *src, int skill_x, int skill_y, int sk
 	bl.x = skill_x;
 	bl.y = skill_y;
 	if(skill_num != TK_HIGHJUMP &&
-		!battle_check_range(src,&bl,skill_get_range2(&sd->bl, skill_num,skill_lv)+1))
+		!battle_check_range(src,&bl,skill_get_range2(src, skill_num,skill_lv)+1))
 		return 0;
 
 	unit_stop_attack(src);