mirror of
https://github.com/appgurueu/modlib.git
synced 2024-08-20 13:24:11 +02:00
Remove unnecessary index check
This commit is contained in:
parent
f140f4cbf9
commit
5ae7cc254f
@ -244,9 +244,6 @@ function connected_players()
|
|||||||
local index = 0
|
local index = 0
|
||||||
local len = #connected_players
|
local len = #connected_players
|
||||||
return function()
|
return function()
|
||||||
if index >= len then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
index = index + 1
|
index = index + 1
|
||||||
return connected_players[index]
|
return connected_players[index]
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user