diff --git a/Assets/ManagedResources/~Lua/Modules/Map/EndLessMapManager.lua b/Assets/ManagedResources/~Lua/Modules/Map/EndLessMapManager.lua index caf87cda3d..23f5ce494d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Map/EndLessMapManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Map/EndLessMapManager.lua @@ -566,7 +566,7 @@ function this.GetHeroDataByProperty1(_proId,_heros) break end end - if not isExist and (v.property == _proId or _proId == 0) then + if not isExist and (v.property == _proId or _proId == 0) and HeroManager.InVersion(v.id) then index = #_heros + 1 _heros[index] = v _heros[index].exist = 0