Fixed NPC crash due to local pointers not updating