MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / MoveNext

Method MoveNext

CryScriptSystem/ScriptObject.cpp:1185–1195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1183}
1184
1185bool CScriptObject::MoveNext()
1186{
1187 if(m_nIterationCounter==-1)
1188 return false;
1189 //leave only the index into the stack
1190 while((lua_gettop(m_pLS)-(m_nIterationCounter+1))>1)
1191 {
1192 lua_pop(m_pLS,1);
1193 }
1194 return (lua_next(m_pLS, m_nIterationCounter+1) != 0);
1195}
1196
1197bool CScriptObject::GetCurrent(int &nVal)
1198{

Callers 7

OnInitDialogMethod · 0.45
OnInitDialogMethod · 0.45
DrawTriStripMethod · 0.45
Debug_Full_recursiveMethod · 0.45
Debug_ElementsMethod · 0.45
GetStackAndLocalsMethod · 0.45

Calls 2

lua_gettopFunction · 0.85
lua_nextFunction · 0.85

Tested by

no test coverage detected