I was iterating the wrong list of polygons.

Sadly, I was not -Werroring on unused variables. My life means nothing.