Lua:Ipairs safe

Lua:Ipairs safe

From BeamNG

Revision as of 05:00, 24 January 2015 by Nug700 (talk | contribs) (initial.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

safe table iteration function.

File location: lua\utils.lua:568

Syntax

-- safe table iteration functions: it will iterate the tables via a copy: "adding" to the tables will not change the iteration
obj ipairs_safe (table t)