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