Fix uninitialised variable.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3541 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -400,7 +400,7 @@ MeleeSetup_setSentTeamName (MeleeSetup *setup, size_t teamNr,
|
||||
}
|
||||
else
|
||||
{
|
||||
MeleeTeam *team;
|
||||
MeleeTeam *team = &setup->sentTeams[teamNr];
|
||||
|
||||
if (haveSentName)
|
||||
{
|
||||
@@ -410,7 +410,6 @@ MeleeSetup_setSentTeamName (MeleeSetup *setup, size_t teamNr,
|
||||
return false; // Team name has not changed.
|
||||
}
|
||||
|
||||
team = &setup->sentTeams[teamNr];
|
||||
MeleeTeam_setName (team, name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user