| 1195 | } |
| 1196 | |
| 1197 | bool CScriptObject::GetCurrent(int &nVal) |
| 1198 | { |
| 1199 | if(m_nIterationCounter==-1) |
| 1200 | return false; |
| 1201 | if (lua_isnumber(m_pLS, -1)) |
| 1202 | { |
| 1203 | nVal =(int)lua_tonumber(m_pLS, -1); |
| 1204 | return true; |
| 1205 | } |
| 1206 | return false; |
| 1207 | } |
| 1208 | |
| 1209 | bool CScriptObject::GetCurrent(float &fVal) |
| 1210 | { |
no test coverage detected