summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-07 03:03:44 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-07 03:03:44 +0000
commit55e1e93e2ec9c22c7b3e89ff3bdf4e62c4dc7ac8 (patch)
tree098c1bda06582b2a4f1681a7fe32dfb2158ad5cc
parent28cb9b9d074dbefa1e5de9805ff172f7dbd39da4 (diff)
downloadhercules-55e1e93e2ec9c22c7b3e89ff3bdf4e62c4dc7ac8.tar.gz
hercules-55e1e93e2ec9c22c7b3e89ff3bdf4e62c4dc7ac8.tar.bz2
hercules-55e1e93e2ec9c22c7b3e89ff3bdf4e62c4dc7ac8.tar.xz
hercules-55e1e93e2ec9c22c7b3e89ff3bdf4e62c4dc7ac8.zip
Update
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@925 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog.txt1
-rw-r--r--src/map/map.c4
-rw-r--r--src/map/map.h2
-rw-r--r--src/map/pc.c2
4 files changed, 6 insertions, 3 deletions
diff --git a/Changelog.txt b/Changelog.txt
index e947ea7b2..76d10d4dc 100644
--- a/Changelog.txt
+++ b/Changelog.txt
@@ -1,5 +1,6 @@
Date Added
01/06
+ * Fixed various memory corruptions causing crashes (SVN 925) [MouseJstr]
* Fixed typo in src/map/map.c causing compile
errors (SVN 924) [MouseJstr]
* Removed the alive_timer mechanism entirly replaced with
diff --git a/src/map/map.c b/src/map/map.c
index 039bdc5f2..db555d747 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -2530,7 +2530,7 @@ int flush_timer(int tid, unsigned int tick, int id, int data){
int id_db_final(void *k,void *d,va_list ap)
{
struct mob_data *id;
-// nullpo_retr(0, id=d);
+ nullpo_retr(0, id=d);
if(id->lootitem)
free(id->lootitem);
if(id)
@@ -2601,7 +2601,7 @@ void do_final(void) {
// do_final_timer(); (we used timer_final() instead)
timer_final();
- numdb_final(id_db, id_db_final);
+// numdb_final(id_db, id_db_final);
strdb_final(map_db, map_db_final);
strdb_final(nick_db, nick_db_final);
numdb_final(charid_db, charid_db_final);
diff --git a/src/map/map.h b/src/map/map.h
index f25ebba30..acc285d67 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -16,7 +16,7 @@
#define LIFETIME_FLOORITEM 60
#define DAMAGELOG_SIZE 30
#define LOOTITEM_SIZE 10
-#define MAX_SKILL_LEVEL 20
+#define MAX_SKILL_LEVEL 100
#define MAX_STATUSCHANGE 210
#define MAX_SKILLUNITGROUP 32
#define MAX_MOBSKILLUNITGROUP 8
diff --git a/src/map/pc.c b/src/map/pc.c
index 3dbfc4e88..7fff1f1ae 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6785,6 +6785,8 @@ int pc_addeventtimer(struct map_session_data *sd,int tick,const char *name)
nullpo_retr(0, sd);
+ Assert(strlen(name) < 24);
+
for(i=0;i<MAX_EVENTTIMER;i++)
if( sd->eventtimer[i]==-1 )
break;