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