fix ReadArrayFromTable
This commit is contained in:
@@ -28,7 +28,7 @@ namespace LuaHelpers
|
|||||||
bool FromStack( CString &Object, int iOffset, lua_State *L );
|
bool FromStack( CString &Object, int iOffset, lua_State *L );
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
void ReadArrayFromTable( vector<T> aOut, lua_State *L = NULL );
|
void ReadArrayFromTable( vector<T> &aOut, lua_State *L = NULL );
|
||||||
template<class T>
|
template<class T>
|
||||||
void PushStack( const T &val, lua_State *L = NULL );
|
void PushStack( const T &val, lua_State *L = NULL );
|
||||||
template<class T>
|
template<class T>
|
||||||
@@ -99,7 +99,7 @@ public:
|
|||||||
namespace LuaHelpers
|
namespace LuaHelpers
|
||||||
{
|
{
|
||||||
template<class T>
|
template<class T>
|
||||||
void ReadArrayFromTable( vector<T> aOut, lua_State *L )
|
void ReadArrayFromTable( vector<T> &aOut, lua_State *L )
|
||||||
{
|
{
|
||||||
if( L == NULL )
|
if( L == NULL )
|
||||||
L = LUA->L;
|
L = LUA->L;
|
||||||
|
|||||||
Reference in New Issue
Block a user