From fbf2cb2d341e7fbca38291583ac56c7a98989500 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 18 Nov 2013 20:12:30 -0200 Subject: Fixed itemdb elvmax issue caused by inherit Special Thanks to Yommy, Haruna. Signed-off-by: shennetsind --- src/map/itemdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/itemdb.c') diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 2fcc60c70..9c3ff4138 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -1612,7 +1612,7 @@ int itemdb_validate_entry(struct item_data *entry, int n, const char *source) { if( !entry->elvmax ) entry->elvmax = MAX_LEVEL; - else if( entry->elvmax > entry->elv ) + else if( entry->elvmax < entry->elv ) entry->elvmax = entry->elv; if( entry->type != IT_ARMOR && entry->type != IT_WEAPON && !entry->flag.no_refine ) -- cgit v1.2.3-60-g2f50