summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-11-29 22:30:41 +0000
committertruebrain <truebrain@openttd.org>2011-11-29 22:30:41 +0000
commit5f6dc2466318b1275e8b654a260a6c565a0ecc5c (patch)
treef09d41efa281fdce4f50d8efddbed2521f949bda /src/ai
parent00877dd6d36ca52b1a8720cbbd4a013c958f7fad (diff)
downloadopenttd-5f6dc2466318b1275e8b654a260a6c565a0ecc5c.tar.xz
(svn r23353) -Fix (r23350): somehow one file slipped through as unmodified
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/api/ai_townlist.hpp.sq6
1 files changed, 3 insertions, 3 deletions
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<AITownEffectList &>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AITownEffectList *)instance; }
template <> inline const AITownEffectList *GetParam(ForceType<const AITownEffectList *>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (AITownEffectList *)instance; }
template <> inline const AITownEffectList &GetParam(ForceType<const AITownEffectList &>, HSQUIRRELVM vm, int index, SQAutoFreePointers *ptr) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AITownEffectList *)instance; }
- template <> inline int Return<AITownEffectList *>(HSQUIRRELVM vm, AITownEffectList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AITownEffectList", res, NULL, DefSQDestructorCallback<AITownEffectList>); return 1; }
+ template <> inline int Return<AITownEffectList *>(HSQUIRRELVM vm, AITownEffectList *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "TownEffectList", res, NULL, DefSQDestructorCallback<AITownEffectList>, true); return 1; }
} // namespace SQConvert
-template <> const char *GetClassName<AITownEffectList>() { return "AITownEffectList"; }
+template <> const char *GetClassName<AITownEffectList, ST_AI>() { return "AITownEffectList"; }
void SQAITownEffectList_Register(Squirrel *engine)
{
- DefSQClass <AITownEffectList> SQAITownEffectList("AITownEffectList");
+ DefSQClass<AITownEffectList, ST_AI> SQAITownEffectList("AITownEffectList");
SQAITownEffectList.PreRegister(engine, "AIList");
SQAITownEffectList.AddConstructor<void (AITownEffectList::*)(), 1>(engine, "x");