Fix an overflow crash

Fixes a crash when all spawns are commented out and "count" variable
with value 0 gets decremented.
Merge pull request #111 from Mihapro/master

Fix an overflow crash