summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-23 12:20:51 +0000
committerxazax-hun <xazax-hun@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-23 12:20:51 +0000
commit0d06b767e34eff1f6782aae8acb55b7040c9f5ce (patch)
treed6f9d632e858cf12f2ae625b800b915d504347e8 /src/map/itemdb.c
parent3a783a8bdd6f2c3e59ce900ef36af7e8e79a2f5b (diff)
downloadhercules-0d06b767e34eff1f6782aae8acb55b7040c9f5ce.tar.gz
hercules-0d06b767e34eff1f6782aae8acb55b7040c9f5ce.tar.bz2
hercules-0d06b767e34eff1f6782aae8acb55b7040c9f5ce.tar.xz
hercules-0d06b767e34eff1f6782aae8acb55b7040c9f5ce.zip
* Reading the itemDB checks for extra columns.
* Fixed a typo in mobDB reading followup r15531. (bugreport:5482) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15784 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 3523ea7ef..73ab0de91 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -959,6 +959,12 @@ static int itemdb_readdb(void)
}
str[21] = p;
+ p = strstr(p+1,"}");
+ if ( strchr(p,',') != NULL )
+ {
+ ShowError("itemdb_readdb: Extra columns in line %d of \"%s\" (item with id %d), skipping.\n", lines, path, atoi(str[0]));
+ continue;
+ }
if (!itemdb_parse_dbrow(str, path, lines, 0))
continue;