Skip to content

Commit 97556e8

Browse files
committed
Fixed getLightCount
1 parent ac85eff commit 97556e8

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

luven/luven.lua

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -422,15 +422,7 @@ function luven.dispose()
422422
end
423423

424424
function luven.getLightCount()
425-
local count = 0
426-
427-
for i = 1, lastActiveLightIndex do
428-
if (currentLights[i].enabled) then
429-
count = count + 1
430-
end
431-
end
432-
433-
return count
425+
return #currentLights
434426
end
435427

436428
-- ///////////////////////////////////////////////

0 commit comments

Comments
 (0)