From 8455ba3917b8c2b22ea4e4173dc1709c0bc6533a Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 15 Nov 2016 10:40:38 +0100 Subject: [PATCH] Fixed: Crash when processing comments --- code/ryzom/tools/translation_tools/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ryzom/tools/translation_tools/main.cpp b/code/ryzom/tools/translation_tools/main.cpp index aacfe41f1..26763ab59 100644 --- a/code/ryzom/tools/translation_tools/main.cpp +++ b/code/ryzom/tools/translation_tools/main.cpp @@ -383,7 +383,7 @@ bool mergeStringDiff(vector &strings, const string &language, const nlassertex(diffInfo.Index2 < strings.size(), ("Index %u out of max Range %u", diffInfo.Index2, strings.size())); swap(strings[diffInfo.Index1], strings[diffInfo.Index2]); // remove the swap from the comments - diff[j].Comments = diff[j].Comments.substr(diff[j].Comments.find(nl)+2); + diff[j].Comments = diff[j].Comments.substr(diff[j].Comments.find(nl)+nl.length()); if (!diff[j].Comments.empty()) j--; break;