mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Update sqratLightObj.h
This commit is contained in:
parent
36757bb70e
commit
f5072413eb
@ -193,7 +193,7 @@ struct LightObj {
|
||||
template<class T>
|
||||
LightObj(SqInPlace SQ_UNUSED_ARG(t), HSQUIRRELVM vm, T value) {
|
||||
// Push the value on the stack
|
||||
Var<T>::PushInstance(vm, std::forward< T >(value));
|
||||
Var<T>::push(vm, std::forward< T >(value));
|
||||
// Attempt to retrieve it
|
||||
if (SQ_FAILED(sq_getstackobj(vm, -1, &mObj))) {
|
||||
sq_resetobject(&mObj);
|
||||
|
Loading…
Reference in New Issue
Block a user