Bläddra i källkod

- Removed a redeclared variable i in the parsing of the fame list (char-txt server) which seems to be the cause of the random memory corruptions.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7915 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 år sedan
förälder
incheckning
3fb5dce0ae
3 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 0
      Changelog-Trunk.txt
  2. 0 1
      src/char_sql/char.c
  3. 0 1
      src/map/mob.c

+ 3 - 0
Changelog-Trunk.txt

@@ -4,6 +4,9 @@ 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.
 
 2006/07/27
+	* Removed a redeclared variable i in the parsing of the fame list (char-txt
+	  server) which seems to be the cause of the random memory corruptions.
+	  [Skotlex]
 	* Updated item_db.sql to latest. [Toms]
 	* Fix homunc & code cleanup [Toms] 
 	  - Timer problems on delete_timer

+ 0 - 1
src/char_sql/char.c

@@ -2877,7 +2877,6 @@ int parse_frommap(int fd) {
 			if (RFIFOREST(fd) < 12)
 				return 0;
 			{
-				int i;
 				int id = RFIFOL(fd, 2);
 				int fame = RFIFOL(fd, 6);
 				char type = RFIFOB(fd, 10);

+ 0 - 1
src/map/mob.c

@@ -1765,7 +1765,6 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
 				mvp_sd=(struct map_session_data *)tmpbl[temp];
 			mvp_damage=md->dmglog[i].dmg;
 		}
-
 		temp++; // [Lance]
 	}
 	count = i; //Total number of attackers.