summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-11-03 07:44:25 -0200
committershennetsind <ind@henn.et>2014-11-03 07:44:25 -0200
commitbd0c805f732a3ec43ad253b6d2618be6fb640cdd (patch)
tree6f7e1b061fd009be6b7f8c24b5e7c35f0f22210e
parentfcb3ad0731907ab004928d5e21280aacdfe459bc (diff)
downloadhercules-bd0c805f732a3ec43ad253b6d2618be6fb640cdd.tar.gz
hercules-bd0c805f732a3ec43ad253b6d2618be6fb640cdd.tar.bz2
hercules-bd0c805f732a3ec43ad253b6d2618be6fb640cdd.tar.xz
hercules-bd0c805f732a3ec43ad253b6d2618be6fb640cdd.zip
Missing 'type' field in itemdb now defaults to IT_ETC rather than IT_UNKNOWN
Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r--src/map/itemdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 0d3146191..e6210f871 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -1713,7 +1713,7 @@ int itemdb_readdb_libconfig_sub(config_setting_t *it, int n, const char *source)
if( libconfig->setting_lookup_int(it, "Type", &i32) )
id.type = i32;
else if( !inherit )
- id.type = IT_UNKNOWN;
+ id.type = IT_ETC;
if( libconfig->setting_lookup_int(it, "Buy", &i32) )
id.value_buy = i32;