From bff7c33aa909d00428f81e6b5f89b236343fc13b Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 29 Nov 2011 22:23:33 +0000 Subject: (svn r23350) -Add: support different ScriptTypes in the helper functions for GetClassName (Rubidium) --- src/ai/api/ai_tunnel.hpp.sq | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ai/api/ai_tunnel.hpp.sq') diff --git a/src/ai/api/ai_tunnel.hpp.sq b/src/ai/api/ai_tunnel.hpp.sq index c854d2be7..67eaa7f8b 100644 --- a/src/ai/api/ai_tunnel.hpp.sq +++ b/src/ai/api/ai_tunnel.hpp.sq @@ -24,11 +24,11 @@ namespace SQConvert { template <> inline int Return(HSQUIRRELVM vm, AITunnel *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITunnel", res, NULL, DefSQDestructorCallback); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AITunnel"; } +template <> const char *GetClassName() { return "AITunnel"; } void SQAITunnel_Register(Squirrel *engine) { - DefSQClass SQAITunnel("AITunnel"); + DefSQClass SQAITunnel("AITunnel"); SQAITunnel.PreRegister(engine); SQAITunnel.AddConstructor(engine, "x"); -- cgit v1.2.3-70-g09d2