mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +00:00
Reset taggroup iterator on successive calls
This commit is contained in:
parent
1c6133a39a
commit
22270d354b
1 changed files with 2 additions and 0 deletions
|
|
@ -75,6 +75,8 @@ struct element_iterator_state {
|
|||
static int element_iterator(lua_State *L)
|
||||
{
|
||||
struct element_iterator_state * state = lua_touserdata(L, 1);
|
||||
if (lua_isnoneornil(L, 3))
|
||||
state->p = 0;
|
||||
lua_pushnumber(L, ++state->p);
|
||||
lua_gettable(L, 1);
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue