Fixed division by 0 error

This commit is contained in:
onpon4 2015-04-14 17:15:06 -04:00
parent 96fb688601
commit dd6723ffc2
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ static void game_addDebris(int x, int y, int amount)
object *debris; object *debris;
amount = RANDRANGE(3, rand() % amount); amount = RANDRANGE(3, amount);
LIMIT(amount, 3, 8); LIMIT(amount, 3, 8);
for (int i = 0 ; i < amount ; i++) for (int i = 0 ; i < amount ; i++)