Fix compilation error of a npc list in LocalState