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