From 979b00385f963a7433ee7ad87dba1102d8f63f3a Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 31 Dec 2018 20:25:57 +0100 Subject: Fixed range and added code comment --- src/dot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dot.cpp b/src/dot.cpp index eb6c03c..07a1a43 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -396,8 +396,9 @@ static bool convertMapFile(FTextStream &t,const char *mapName, if (buf.left(5)=="=0 && (indexE=replBuf.find('"',indexS+4))!=-1) + if (indexS>0 && (indexE=replBuf.find('"',indexS+4))!=-1) { t << replBuf.left(indexS-1) << replBuf.right(replBuf.length() - indexE - 1); } -- cgit v0.12