From 5f6dc2466318b1275e8b654a260a6c565a0ecc5c Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 29 Nov 2011 22:30:41 +0000 Subject: (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(-) (limited to 'src/ai/api') diff --git a/src/ai/api/ai_townlist.hpp.sq b/src/ai/api/ai_townlist.hpp.sq index c932c6995..36798478b 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"); -- cgit v1.2.3-70-g09d2