瀏覽代碼

Fixed a typo in the item parsing (#5480)

The 'Locations' node doesn't exist in the block
Atemo 4 年之前
父節點
當前提交
4786d76ef7
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {
 		if (!exists) {
 			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;
 			} else
 				item->equip = 0;