From dbba009703741f534e0421d7cb5013b6d87348a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Wed, 5 Jun 2019 11:20:29 +0300 Subject: [PATCH] libdoomsday|Resources: Updated for indexing changes Path segment comparisons must be done using lower-case strings. --- doomsday/libs/doomsday/src/resource/databundle.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doomsday/libs/doomsday/src/resource/databundle.cpp b/doomsday/libs/doomsday/src/resource/databundle.cpp index 0f7d2303ce..832ce9aef5 100644 --- a/doomsday/libs/doomsday/src/resource/databundle.cpp +++ b/doomsday/libs/doomsday/src/resource/databundle.cpp @@ -580,9 +580,9 @@ DE_PIMPL(DataBundle), public Lockable for (int i = 1; i < path.segmentCount() - 3; ++i) { - if ((path.segment(i) == "Defs" || path.segment(i) == "Data") && - (path.segment(i + 1) == "jDoom" || path.segment(i + 1) == "jHeretic" || path.segment(i + 1) == "jHexen") && - path.segment(i + 2) == "Auto") + if ((path.segment(i) == "defs" || path.segment(i) == "data") && + (path.segment(i + 1) == "jdoom" || path.segment(i + 1) == "jheretic" || path.segment(i + 1) == "jhexen") && + path.segment(i + 2) == "auto") { //qDebug() << "-> autoload"; return true;