Prevent player name from becoming part of a formatting string.

fixes #6524
This commit is contained in:
Matthijs Benschop
2014-09-21 00:52:20 +02:00
parent ea11906938
commit 534f6c5a33
4 changed files with 7 additions and 7 deletions

View File

@@ -241,8 +241,8 @@ namespace OpenRA.Network
SetPlayerStance(world, order.Player, targetPlayer, newStance);
Game.Debug("{0} has set diplomatic stance vs {1} to {2}".F(
order.Player.PlayerName, targetPlayer.PlayerName, newStance));
Game.Debug("{0} has set diplomatic stance vs {1} to {2}",
order.Player.PlayerName, targetPlayer.PlayerName, newStance);
// automatically declare war reciprocally
if (newStance == Stance.Enemy && targetPlayer.Stances[order.Player] == Stance.Ally)