| 550 | } |
| 551 | |
| 552 | void CScriptObject::SetAt(int nIdx, int nVal) |
| 553 | { |
| 554 | assert(nIdx>=0); // nIdx=1 -> first element |
| 555 | |
| 556 | _GUARD_STACK(m_pLS); |
| 557 | if (!_GET_THIS()) |
| 558 | return; |
| 559 | |
| 560 | lua_pushnumber(m_pLS, (lua_Number)nVal); |
| 561 | lua_rawseti(m_pLS, - 2, nIdx); |
| 562 | } |
| 563 | |
| 564 | void CScriptObject::SetAt(int nIdx, float fVal) |
| 565 | { |
no test coverage detected