1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Update sqratLightObj.h

This commit is contained in:
Sandu Liviu Catalin 2021-02-04 04:29:54 +02:00
parent 36757bb70e
commit f5072413eb

View File

@ -193,7 +193,7 @@ struct LightObj {
template<class T> template<class T>
LightObj(SqInPlace SQ_UNUSED_ARG(t), HSQUIRRELVM vm, T value) { LightObj(SqInPlace SQ_UNUSED_ARG(t), HSQUIRRELVM vm, T value) {
// Push the value on the stack // 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 // Attempt to retrieve it
if (SQ_FAILED(sq_getstackobj(vm, -1, &mObj))) { if (SQ_FAILED(sq_getstackobj(vm, -1, &mObj))) {
sq_resetobject(&mObj); sq_resetobject(&mObj);