Fixed polygon bug.

Ye olde short integer was used.
Thank you Taizo.