From 8965f450ce547e13b1c0b97f26b00951967b1b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 30 Apr 2020 21:46:41 +0200 Subject: [PATCH] 32 layers ought to be enough for anybody --- src/map/imgmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/imgmap.cpp b/src/map/imgmap.cpp index 7c882f4b..8206f2c1 100644 --- a/src/map/imgmap.cpp +++ b/src/map/imgmap.cpp @@ -25,7 +25,7 @@ static QList overlays(const QString &fileName) { QList list; - for (int i = 1; ; i++) { + for (int i = 1; i < 32; i++) { QString ol(fileName + "." + QString::number(i)); if (QFileInfo(ol).isFile()) { MapData *data = new IMG(ol);