checkForChangesOnUpdate(actor) function was indirectly triggering the update hook due to the call to this.actor.setFlag(). Each time the flags were updated, it triggered an update to the actor, which in turn called the updateNPCModelFlags(actor) function, creating an infinite loop.
This will need to be reviewed.
checkForChangesOnUpdate(actor) function was indirectly triggering the update hook due to the call to this.actor.setFlag(). Each time the flags were updated, it triggered an update to the actor, which in turn called the updateNPCModelFlags(actor) function, creating an infinite loop.