pulkomandy/Sawteeth — pull request #40 by arvidn (2014-08-23 07:47:32+00:00)
Title: fix invalid access outside of sine table

I noticed pos would overflow the table size. Since I assume the sine table loops anyway, it seems reasonable to just mask it. This fixes an access violation on Mac OS X when playing b2k_theme.st