summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-18 20:12:30 -0200
committershennetsind <ind@henn.et>2013-11-18 20:12:30 -0200
commitfbf2cb2d341e7fbca38291583ac56c7a98989500 (patch)
tree924bb4deb023f1f5bb59683737f62d0fea11c148
parent4655f6611b14fca90ed38b021bf6a365cbfb335a (diff)
downloadhercules-fbf2cb2d341e7fbca38291583ac56c7a98989500.tar.gz
hercules-fbf2cb2d341e7fbca38291583ac56c7a98989500.tar.bz2
hercules-fbf2cb2d341e7fbca38291583ac56c7a98989500.tar.xz
hercules-fbf2cb2d341e7fbca38291583ac56c7a98989500.zip
Fixed itemdb elvmax issue caused by inherit
Special Thanks to Yommy, Haruna. 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 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 )