Fix NPC pointer issue during player attack

Fixed a NULL NPC pointer issue in
"graphics_select_single_repeating_click".