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