From e9332546ff038f9ce020338f13391ca10140137f Mon Sep 17 00:00:00 2001 From: Hexah Date: Wed, 1 Apr 2020 10:52:47 +0200 Subject: [PATCH] Fix Critical Crash --- App/AssemblyInfo1.cs | 2 +- .../CondenserFunctions/SMFunctionConsumer.cs | 3 +++ Utils/FTP.cs | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/App/AssemblyInfo1.cs b/App/AssemblyInfo1.cs index 2994b3dd..0e087db3 100644 --- a/App/AssemblyInfo1.cs +++ b/App/AssemblyInfo1.cs @@ -33,5 +33,5 @@ #if (DEBUG) [assembly: AssemblyVersion("1.13.*")] #else -[assembly: AssemblyVersion("1.3.4.1")] +[assembly: AssemblyVersion("1.3.4.2")] #endif diff --git a/SourcepawnCondenser/SourcepawnCondenser/CondenserFunctions/SMFunctionConsumer.cs b/SourcepawnCondenser/SourcepawnCondenser/CondenserFunctions/SMFunctionConsumer.cs index 03bf9ffd..7cbd2f91 100644 --- a/SourcepawnCondenser/SourcepawnCondenser/CondenserFunctions/SMFunctionConsumer.cs +++ b/SourcepawnCondenser/SourcepawnCondenser/CondenserFunctions/SMFunctionConsumer.cs @@ -320,7 +320,10 @@ public static List ConsumeSMVariableLocal(Token[] t, string FileName if (t[position + index + 1].Kind != TokenKind.Assignment || t[position + index + 2].Kind != TokenKind.New || t[position + index + 3].Value != varType) + { + position++; continue; + } for (var i = index + 4; i < length - 2; i += 3) { diff --git a/Utils/FTP.cs b/Utils/FTP.cs index 15efabe5..97410a52 100644 --- a/Utils/FTP.cs +++ b/Utils/FTP.cs @@ -1,7 +1,6 @@ using System; using System.IO; using System.Net; -using System.Text; using Renci.SshNet; namespace Spedit.Utils