fix for npcthis crash in new spawn condition case.