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

Update the task type to use the new allocator and not attempt to destroy a static instance.

This commit is contained in:
Sandu Liviu Catalin 2016-11-17 11:47:07 +02:00
parent 41f2971b7c
commit 5b32baa908

View File

@ -153,7 +153,7 @@ void Tasks::Initialize()
void Tasks::Register(HSQUIRRELVM vm)
{
RootTable(vm).Bind(Typename::Str,
Class< Task, NoConstructor< Task > >(vm, Typename::Str)
Class< Task, NoDestructor< Task > >(vm, Typename::Str)
// Meta-methods
.SquirrelFunc(_SC("_typename"), &Typename::Fn)
//.Func(_SC("_tostring"), &CBlip::ToString)