summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-01 15:48:59 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-01 15:48:59 +0000
commit64d0f3dd32f08a148e4d29e3a33644777e00d6e2 (patch)
tree8697c1722bc13451a5dc6bd2d4849b7ef89e17ce /src
parentdac097d9757a44cc307061f56f18fdd88d0ebd2b (diff)
downloadhercules-64d0f3dd32f08a148e4d29e3a33644777e00d6e2.tar.gz
hercules-64d0f3dd32f08a148e4d29e3a33644777e00d6e2.tar.bz2
hercules-64d0f3dd32f08a148e4d29e3a33644777e00d6e2.tar.xz
hercules-64d0f3dd32f08a148e4d29e3a33644777e00d6e2.zip
* 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
Diffstat (limited to 'src')
-rw-r--r--src/map/mob.c4
1 files changed, 2 insertions, 2 deletions
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();