From bd0c805f732a3ec43ad253b6d2618be6fb640cdd Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 3 Nov 2014 07:44:25 -0200 Subject: Missing 'type' field in itemdb now defaults to IT_ETC rather than IT_UNKNOWN Signed-off-by: shennetsind --- src/map/itemdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map') 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; -- cgit v1.2.3-60-g2f50