From e70cb2a44a1a16035f61ed8cffff307f840c37e7 Mon Sep 17 00:00:00 2001 From: Stefan Wurzinger Date: Wed, 24 Oct 2018 00:19:22 +0200 Subject: [PATCH] fix log message formatter --- VocaluxeLib/Log/CLog.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VocaluxeLib/Log/CLog.cs b/VocaluxeLib/Log/CLog.cs index e2719273..2b78b8cb 100644 --- a/VocaluxeLib/Log/CLog.cs +++ b/VocaluxeLib/Log/CLog.cs @@ -196,10 +196,10 @@ namespace VocaluxeLib.Log int i = 0; return theRegex.Replace(template, delegate(Match match) { - if (propertyValues.Length >= i) + if (i >= propertyValues.Length) return match.Value; return propertyValues[i++].ToString(); - }); + }); } }