From 6e55175f518fa9cb9bd3ff14a68ed977ac0f1826 Mon Sep 17 00:00:00 2001 From: twanvl Date: Thu, 14 Jun 2007 14:24:49 +0000 Subject: [PATCH] Fixed: < was matched by spec_sort "" git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@421 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/script/functions/basic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/functions/basic.cpp b/src/script/functions/basic.cpp index ad946b0d..b93233bb 100644 --- a/src/script/functions/basic.cpp +++ b/src/script/functions/basic.cpp @@ -489,7 +489,7 @@ String spec_sort(const String& spec, const String& input) { Char c = spec.GetChar(pos); if (c == _('<')) { // keep only a single copy - for ( ; pos < spec.size() ; ++pos) { + for ( ++pos ; pos < spec.size() ; ++pos) { Char c = spec.GetChar(pos); if (c == _('>')) break; if (input.find_first_of(c) != String::npos) {