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