The error point to the "if" statement.
I
Code: Select all
local ptrMother = fhNewItemPtr();
ptrMother = fhGetItemPtr(ptrIndi,"~.~MOTH>")
if ptrMother:isNotNull() then
The Debug clearly shows the ptrMother as (null) so the pointer is defined.
I want to check if the "Mother Pointer" is null so I avoid trying to get other data (and getting errors) based on the pointer later on!