# HG changeset patch # User nemo # Date 1266184352 0 # Node ID db6e2a4da3582bfd0c590320ea1618da5ffc92a6 # Parent 36a8cebb91e8f54b7430ff63b80b26862101097d Prevent crasher if attempting to show ammo menu diff -r 36a8cebb91e8 -r db6e2a4da358 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;