Fix crash when generating a syncreport when blaming something other than Tick.

This commit is contained in:
Bob
2010-11-05 14:52:56 +13:00
committed by Chris Forbes
parent 8fcbb670d8
commit aa0c14c214

View File

@@ -132,7 +132,7 @@ namespace OpenRA
{
return "OrderString: \"{0}\" \n\t Subject: \"{1}\". \n\t TargetActor: \"{2}\" \n\t TargetLocation: {3}." +
"\n\t TargetString: \"{4}\".\n\t IsImmediate: {5}.\n\t Player(PlayerName): {6}\n".F(
OrderString, Subject, TargetActor.Info.Name , TargetLocation, TargetString, IsImmediate, Player.PlayerName);
OrderString, Subject, TargetActor != null ? TargetActor.Info.Name : null , TargetLocation, TargetString, IsImmediate, Player != null ? Player.PlayerName : null);
}
static uint UIntFromActor(Actor a)