Prevent crasher if attempting to show ammo menu
authornemo
Sun, 14 Feb 2010 21:52:32 +0000
changeset 2806 db6e2a4da358
parent 2805 36a8cebb91e8
child 2807 cd131de34d3d
Prevent crasher if attempting to show ammo menu
hedgewars/uTeams.pas
--- a/hedgewars/uTeams.pas	Sat Feb 13 16:04:04 2010 +0000
+++ b/hedgewars/uTeams.pas	Sun Feb 14 21:52:32 2010 +0000
@@ -297,7 +297,7 @@
 TryDo(team <> nil, 'AddTeam: team = nil', true);
 FillChar(team^, sizeof(TTeam), 0);
 team^.AttackBar:= 2;
-team^.CurrHedgehog:= cMaxHHIndex;
+team^.CurrHedgehog:= 0;
 team^.Flag:= 'hedgewars';
 
 TeamsArray[TeamsCount]:= team;