Skip to content

Commit

Permalink
libdoomsday|Resources: Updated for indexing changes
Browse files Browse the repository at this point in the history
Path segment comparisons must be done using lower-case strings.
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent a04c77c commit dbba009
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doomsday/libs/doomsday/src/resource/databundle.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit dbba009

Please sign in to comment.