hedgewars/CCHandlers.inc
changeset 2635 80d02d3e24ae
parent 2633 9eb131794a6e
child 2642 097e3baa1305
--- a/hedgewars/CCHandlers.inc	Sat Nov 21 15:04:42 2009 +0000
+++ b/hedgewars/CCHandlers.inc	Sat Nov 21 17:24:44 2009 +0000
@@ -138,7 +138,7 @@
 	val(s, Gear^.Health);
 	TryDo(Gear^.Health > 0, 'Invalid hedgehog health', true);
 	PHedgehog(Gear^.Hedgehog)^.Team:= CurrentTeam;
-	CurrentHedgehog^.AmmoStore:= TeamsCount - 1; // FIXME HACK to get ammostores work
+	CurrentHedgehog^.AmmoStore:= ClansCount - 1; // FIXME HACK to get ammostores work
 	CurrentHedgehog^.Gear:= Gear;
 	CurrentHedgehog^.Name:= id;
 	inc(HedgehogsNumber)