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