hedgewars/uTeams.pas
changeset 14557 181509fe1ae8
parent 14549 6446ddf0c0ba
child 14594 9be988a01565
--- a/hedgewars/uTeams.pas	Thu Jan 10 00:41:31 2019 +0100
+++ b/hedgewars/uTeams.pas	Thu Jan 10 02:50:01 2019 +0100
@@ -484,6 +484,7 @@
 if checkFails(team <> nil, 'AddTeam: team = nil', true) then exit(nil);
 FillChar(team^, sizeof(TTeam), 0);
 team^.HedgehogsNumber:= 0;
+team^.Binds:= DefaultBinds;
 
 CurrentTeam:= team;
 MissionTeam:= team;
@@ -872,6 +873,7 @@
         begin
         CurrentTeam^.TeamName:= ts;
         CurrentTeam^.PlayerHash:= s;
+        loadTeamBinds(ts);
         CurrentTeam^.voicepack:= AskForVoicepack('Default')
         end
     end