--- a/src/ai/api/ai_map.hpp.sq Wed Jul 18 14:58:37 2007 +0000
+++ b/src/ai/api/ai_map.hpp.sq Wed Jul 18 15:09:16 2007 +0000
@@ -6,7 +6,7 @@
template <> AIMap &GetParam(ForceType<AIMap &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIMap *)instance; }
template <> const AIMap *GetParam(ForceType<const AIMap *>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return (AIMap *)instance; }
template <> const AIMap &GetParam(ForceType<const AIMap &>, HSQUIRRELVM vm, int index) { SQUserPointer instance; sq_getinstanceup(vm, index, &instance, 0); return *(AIMap *)instance; }
- template <> int Return<AIMap *>(HSQUIRRELVM vm, AIMap *res) { HSQOBJECT instance; Squirrel::CreateClassInstanceVM(vm, "AIMap", res, &instance); sq_pushobject(vm, instance); return 1; }
+ template <> int Return<AIMap *>(HSQUIRRELVM vm, AIMap *res) { HSQOBJECT instance; Squirrel::CreateClassInstanceVM(vm, "AIMap", res, &instance, DefSQDestructorCallback<AIMap>); sq_pushobject(vm, instance); return 1; }
}; // namespace SQConvert
void SQAIMapRegister(Squirrel *engine) {