1
0
mirror of https://github.com/natnat-mc/moonbuild synced 2026-05-29 19:59:39 +02:00

fix crash when multiple targets depend on the same target

This commit is contained in:
Codinget
2020-11-09 19:53:05 +01:00
parent ee0d76db98
commit 69e781bc8f
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -34,6 +34,7 @@ transclosure = (obj, prop) ->
i = 1
set = {}
imp = (e) ->
return unless e[prop]
for v in *e[prop]
if not set[v]
elems[i], i = v, i+1
+3
View File
@@ -1695,6 +1695,9 @@ transclosure = function(obj, prop)
local set = { }
local imp
imp = function(e)
if not (e[prop]) then
return
end
local _list_0 = e[prop]
for _index_0 = 1, #_list_0 do
local v = _list_0[_index_0]