mirror of
https://github.com/natnat-mc/moonbuild
synced 2026-06-18 22:29:41 +02:00
fix crash when multiple targets depend on the same target
This commit is contained in:
@@ -34,6 +34,7 @@ transclosure = (obj, prop) ->
|
|||||||
i = 1
|
i = 1
|
||||||
set = {}
|
set = {}
|
||||||
imp = (e) ->
|
imp = (e) ->
|
||||||
|
return unless e[prop]
|
||||||
for v in *e[prop]
|
for v in *e[prop]
|
||||||
if not set[v]
|
if not set[v]
|
||||||
elems[i], i = v, i+1
|
elems[i], i = v, i+1
|
||||||
|
|||||||
@@ -1695,6 +1695,9 @@ transclosure = function(obj, prop)
|
|||||||
local set = { }
|
local set = { }
|
||||||
local imp
|
local imp
|
||||||
imp = function(e)
|
imp = function(e)
|
||||||
|
if not (e[prop]) then
|
||||||
|
return
|
||||||
|
end
|
||||||
local _list_0 = e[prop]
|
local _list_0 = e[prop]
|
||||||
for _index_0 = 1, #_list_0 do
|
for _index_0 = 1, #_list_0 do
|
||||||
local v = _list_0[_index_0]
|
local v = _list_0[_index_0]
|
||||||
|
|||||||
Reference in New Issue
Block a user