Skip to content

Commit

Permalink
fix crash when using tpt.start_getPartIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Nov 4, 2017
1 parent 7d4010d commit 1b19e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/LegacyLuaAPI.cpp
Expand Up @@ -1711,7 +1711,7 @@ int luatpt_get_numOfParts(lua_State* l)
int luatpt_start_getPartIndex(lua_State* l)
{
getPartIndex_curIdx = -1;
return 1;
return 0;
}

int luatpt_next_getPartIndex(lua_State* l)
Expand Down

0 comments on commit 1b19e04

Please sign in to comment.