瀏覽代碼

Fixed an issue for map_drops.yml (#7735)

The key for umap should be the index, to allow to define the same item in yaml file
Atemo 2 年之前
父節點
當前提交
84bf6b87f1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/map/mob.cpp

+ 1 - 1
src/map/mob.cpp

@@ -6545,7 +6545,7 @@ bool MapDropDatabase::parseDrop( const ryml::NodeRef& node, std::unordered_map<u
 	}
 
 	if( !exists ){
-		drops[drop->nameid] = drop;
+		drops[index] = drop;
 	}
 
 	return true;