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