From cbfd70b924a8be6f0b0d600953902c8a5ea8e4b0 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 19 Dec 2009 09:31:17 +1300 Subject: [PATCH] oops. that crashed when there were no mods --- OpenRa.Game/Exts.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRa.Game/Exts.cs b/OpenRa.Game/Exts.cs index cc04e81a91..3de1b767a5 100644 --- a/OpenRa.Game/Exts.cs +++ b/OpenRa.Game/Exts.cs @@ -25,7 +25,7 @@ namespace OpenRa.Game public static float Product(this IEnumerable xs) { - return xs.Aggregate((a, x) => a * x); + return xs.Aggregate(1f, (a, x) => a * x); } } }