# HG changeset patch
# User sheepluva
# Date 1316357186 -7200
# Node ID f9e3033d929fc4f8e85cc89e84c21129a4a4222c
# Parent  a6224655647c895cae5c754528ef6fc6778ca2e1
set a default value for density that shouldn't lead to div by 0

diff -r a6224655647c -r f9e3033d929f hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Sat Sep 17 22:01:17 2011 +0400
+++ b/hedgewars/uGears.pas	Sun Sep 18 16:46:26 2011 +0200
@@ -224,6 +224,7 @@
 gear^.SoundChannel:= -1;
 gear^.ImpactSound:= sndNone;
 gear^.nImpactSounds:= 0;
+gear^.Density:= _1;
 // Define ammo association, if any.
 gear^.AmmoType:= GearKindAmmoTypeMap[Kind];
 if Ammoz[Gear^.AmmoType].Ammo.Propz and ammoprop_NeedTarget <> 0 then gear^.Z:= cHHZ+1