From e49a439c79cf33bfecd93f5cf71c7bdf7413d970 Mon Sep 17 00:00:00 2001 From: James Dunne Date: Tue, 3 Jul 2012 19:05:46 -0500 Subject: [PATCH] You win chrisf =P --- OpenRA.Game/Support/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Support/Program.cs b/OpenRA.Game/Support/Program.cs index 4b136a29dc..181be6b7cd 100644 --- a/OpenRA.Game/Support/Program.cs +++ b/OpenRA.Game/Support/Program.cs @@ -60,9 +60,9 @@ namespace OpenRA sb.AppendFormat("Exception of type `{0}`: {1}", e.GetType().FullName, e.Message); - TypeLoadException tle; - if ((tle = e as TypeLoadException) != null) + if (e is TypeLoadException) { + var tle = (TypeLoadException)e; sb.AppendLine(); Indent(sb, d); sb.AppendFormat("TypeName=`{0}`", tle.TypeName);