From 5b32baa9086e2eac9eac1ef7cd4434ecbd442453 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Thu, 17 Nov 2016 11:47:07 +0200 Subject: [PATCH] Update the task type to use the new allocator and not attempt to destroy a static instance. --- source/Tasks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Tasks.cpp b/source/Tasks.cpp index 2dca1fd7..d6171c18 100644 --- a/source/Tasks.cpp +++ b/source/Tasks.cpp @@ -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)