From 64d0f3dd32f08a148e4d29e3a33644777e00d6e2 Mon Sep 17 00:00:00 2001 From: ai4rei Date: Wed, 1 Dec 2010 15:48:59 +0000 Subject: * Reverted change from r14533 and restored the 3rd field of mob_avail.txt being optional (bugreport:4599, since r14532). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14534 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map') diff --git a/src/map/mob.c b/src/map/mob.c index 3b14bc6a7..56a9f1961 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3752,7 +3752,7 @@ static bool mob_readdb_mobavail(char* str[], int columns, int current) } else if(columns==3) mob_db_data[class_]->vd.head_bottom=atoi(str[2]); // mob equipment [Valaris] - else + else if( columns != 2 ) return false; return true; @@ -4246,7 +4246,7 @@ static void mob_load(void) #endif /* TXT_ONLY */ mob_readdb(); - sv_readdb(db_path, "mob_avail.txt", ',', 3, 12, -1, &mob_readdb_mobavail); + sv_readdb(db_path, "mob_avail.txt", ',', 2, 12, -1, &mob_readdb_mobavail); mob_read_randommonster(); mob_readchatdb(); mob_readskilldb(); -- cgit v1.2.3-70-g09d2