From d8b0f15444e87644ccee5a5e1ea4449c9b918fec Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 27 Jul 2006 13:20:44 +0000 Subject: - 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7915 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 3 +++ src/char_sql/char.c | 1 - src/map/mob.c | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 52cc8ef2e..66434285f 100644 --- a/Changelog-Trunk.txt +++ b/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 diff --git a/src/char_sql/char.c b/src/char_sql/char.c index 059e1aace..098736caf 100644 --- a/src/char_sql/char.c +++ b/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); diff --git a/src/map/mob.c b/src/map/mob.c index 961e79c49..7eed36758 100644 --- a/src/map/mob.c +++ b/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. -- cgit v1.2.3-70-g09d2