diff options
Diffstat (limited to 'src/ai/api/ai_engine.hpp.sq')
-rw-r--r-- | src/ai/api/ai_engine.hpp.sq | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/api/ai_engine.hpp.sq b/src/ai/api/ai_engine.hpp.sq index accb9cba2..f56bb6658 100644 --- a/src/ai/api/ai_engine.hpp.sq +++ b/src/ai/api/ai_engine.hpp.sq @@ -20,11 +20,11 @@ namespace SQConvert { template <> inline int Return<AIEngine *>(HSQUIRRELVM vm, AIEngine *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIEngine", res, NULL, DefSQDestructorCallback<AIEngine>); return 1; } } // namespace SQConvert -template <> const char *GetClassName<AIEngine>() { return "AIEngine"; } +template <> const char *GetClassName<AIEngine, ST_AI>() { return "AIEngine"; } void SQAIEngine_Register(Squirrel *engine) { - DefSQClass <AIEngine> SQAIEngine("AIEngine"); + DefSQClass<AIEngine, ST_AI> SQAIEngine("AIEngine"); SQAIEngine.PreRegister(engine); SQAIEngine.AddConstructor<void (AIEngine::*)(), 1>(engine, "x"); |