Let’s say for example I have a module that calls another module with a character model in the parameter like this:
--First module:
function ModuleOne:DoThis()
ModuleTwo:DoThat({Character1, Character2})
end
--Second Module
function ModuleTwo:DoThat(CharacterList)
end
Will doing this cause any memory leaks if the character gets destroyed and cannot get GC’ed because it is referenced in a table. If so will it only happen in the first module or second module or both, so would I need to loop over the table and set all the indexes to nil?