Fix an overflow crash

Fixes a crash when all spawns are commented out and *count* variable with value 0 gets decremented.