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