From da6a9704cff3f183b8feb8611e0f06f6f4eb4933 Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 29 Nov 2011 22:30:41 +0000 Subject: [PATCH] (svn r23353) -Fix (r23350): somehow one file slipped through as unmodified --- src/ai/api/ai_townlist.hpp.sq | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ai/api/ai_townlist.hpp.sq b/src/ai/api/ai_townlist.hpp.sq index c932c69955..36798478bd 100644 --- a/src/ai/api/ai_townlist.hpp.sq +++ b/src/ai/api/ai_townlist.hpp.sq @@ -37,14 +37,14 @@ namespace SQConvert { template <> inline AITownEffectList &GetParam(ForceType, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AITownEffectList *)instance; } template <> inline const AITownEffectList *GetParam(ForceType, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (AITownEffectList *)instance; } template <> inline const AITownEffectList &GetParam(ForceType, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AITownEffectList *)instance; } - template <> inline int Return(HSQUIRRELVM vm, AITownEffectList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITownEffectList", res, NULL, DefSQDestructorCallback); return 1; } + template <> inline int Return(HSQUIRRELVM vm, AITownEffectList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "TownEffectList", res, NULL, DefSQDestructorCallback, true); return 1; } } // namespace SQConvert -template <> const char *GetClassName() { return "AITownEffectList"; } +template <> const char *GetClassName() { return "AITownEffectList"; } void SQAITownEffectList_Register(Squirrel *engine) { - DefSQClass SQAITownEffectList("AITownEffectList"); + DefSQClass SQAITownEffectList("AITownEffectList"); SQAITownEffectList.PreRegister(engine, "AIList"); SQAITownEffectList.AddConstructor(engine, "x");