diff --git a/module/Sqrat/sqratLightObj.h b/module/Sqrat/sqratLightObj.h index c4a10889..876bd167 100644 --- a/module/Sqrat/sqratLightObj.h +++ b/module/Sqrat/sqratLightObj.h @@ -193,7 +193,7 @@ struct LightObj { template LightObj(SqInPlace SQ_UNUSED_ARG(t), HSQUIRRELVM vm, T value) { // Push the value on the stack - Var::PushInstance(vm, std::forward< T >(value)); + Var::push(vm, std::forward< T >(value)); // Attempt to retrieve it if (SQ_FAILED(sq_getstackobj(vm, -1, &mObj))) { sq_resetobject(&mObj);