summaryrefslogtreecommitdiff
path: root/src/resources/db/itemfielddb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db/itemfielddb.cpp')
-rw-r--r--src/resources/db/itemfielddb.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/db/itemfielddb.cpp b/src/resources/db/itemfielddb.cpp
index 17f9b61e1..0eeb7f901 100644
--- a/src/resources/db/itemfielddb.cpp
+++ b/src/resources/db/itemfielddb.cpp
@@ -86,6 +86,13 @@ static void loadFields(const XmlNodePtr groupNode,
name.c_str());
continue;
}
+ if (fields1.find(name) != fields1.end())
+ {
+ reportAlways(
+ "Same field name detected: %s",
+ name.c_str());
+ continue;
+ }
fields1[name] = new ItemFieldType(name,
description,
sign);