Use a byte flag instead of counting polys using edges (technically a fix for edges with USHRT_MAX+2 users).