1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 06:45:35 +00:00

Clarify variable name

This commit is contained in:
AnyOldName3 2023-12-11 00:05:41 +00:00
parent 3a71a78d9e
commit 4d0aece001

View file

@ -67,10 +67,10 @@ std::string Misc::ResourceHelpers::correctResourcePath(
// Handle top level directory
bool needsPrefix = true;
for (std::string_view alternativeDirectory : topLevelDirectories)
for (std::string_view potentialTopLevelDirectory : topLevelDirectories)
{
if (correctedPath.starts_with(alternativeDirectory) && correctedPath.size() > alternativeDirectory.size()
&& correctedPath[alternativeDirectory.size()] == '\\')
if (correctedPath.starts_with(potentialTopLevelDirectory) && correctedPath.size() > potentialTopLevelDirectory.size()
&& correctedPath[potentialTopLevelDirectory.size()] == '\\')
{
needsPrefix = false;
break;