Browse Source

Fixed a typo in the item parsing (#5480)

The 'Locations' node doesn't exist in the block
Atemo 4 years ago
parent
commit
4786d76ef7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/itemdb.cpp

+ 1 - 1
src/map/itemdb.cpp

@@ -420,7 +420,7 @@ uint64 ItemDatabase::parseBodyNode(const YAML::Node &node) {
 	} else {
 	} else {
 		if (!exists) {
 		if (!exists) {
 			if (itemdb_isequip2(item.get())) {
 			if (itemdb_isequip2(item.get())) {
-				this->invalidWarning(node["Locations"], "Invalid item equip location as it has no equip location, defaulting to IT_ETC.\n");
+				this->invalidWarning(node, "Invalid item equip location as it has no equip location, defaulting to IT_ETC.\n");
 				item->type = IT_ETC;
 				item->type = IT_ETC;
 			} else
 			} else
 				item->equip = 0;
 				item->equip = 0;