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

Fixed segmentation fault in status_change_end, vd wasn't initialized

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

+ 2 - 0
Changelog-Trunk.txt

@@ -3,6 +3,8 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+2006/07/31
+	* Fixed segmentation fault in status_change_end, vd wasn't initialized [Toms]
 2006/07/30
 	* NPC_INVISIBLE will now use Cloaking of a level +9 of the used skill
 	  level, so that at level 1 they can attack, use skills and receive no

+ 1 - 0
src/map/status.c

@@ -5682,6 +5682,7 @@ int status_change_end( struct block_list* bl , int type,int tid )
 	sc->data[type].timer=-1;
 	(sc->count)--;
 
+	vd = status_get_viewdata(bl);
 	calc_flag = StatusChangeFlagTable[type];
 	switch(type){
 		case SC_WEDDING: