浏览代码

Follow up to 99eed0c

Lemongrass3110 3 年之前
父节点
当前提交
aba4dc5635
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/map/mob.cpp

+ 1 - 1
src/map/mob.cpp

@@ -5934,7 +5934,7 @@ uint64 MobItemRatioDatabase::parseBodyNode(const YAML::Node &node) {
 	if (!this->asString(node, "Item", item_name))
 		return 0;
 
-	item_data *item = itemdb_search_aegisname(item_name.c_str());
+	std::shared_ptr<item_data> item = item_db.search_aegisname(item_name.c_str());
 
 	if (item == nullptr) {
 		this->invalidWarning(node["Item"], "Item %s does not exist, skipping.\n", item_name.c_str());