fix ReadArrayFromTable

This commit is contained in:
Glenn Maynard
2005-04-25 07:01:52 +00:00
parent ee8309859a
commit 134ee5e24a
+2 -2
View File
@@ -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;