mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-02 06:06:41 +00:00
Clarify variable name
This commit is contained in:
parent
3a71a78d9e
commit
4d0aece001
1 changed files with 3 additions and 3 deletions
|
@ -67,10 +67,10 @@ std::string Misc::ResourceHelpers::correctResourcePath(
|
||||||
|
|
||||||
// Handle top level directory
|
// Handle top level directory
|
||||||
bool needsPrefix = true;
|
bool needsPrefix = true;
|
||||||
for (std::string_view alternativeDirectory : topLevelDirectories)
|
for (std::string_view potentialTopLevelDirectory : topLevelDirectories)
|
||||||
{
|
{
|
||||||
if (correctedPath.starts_with(alternativeDirectory) && correctedPath.size() > alternativeDirectory.size()
|
if (correctedPath.starts_with(potentialTopLevelDirectory) && correctedPath.size() > potentialTopLevelDirectory.size()
|
||||||
&& correctedPath[alternativeDirectory.size()] == '\\')
|
&& correctedPath[potentialTopLevelDirectory.size()] == '\\')
|
||||||
{
|
{
|
||||||
needsPrefix = false;
|
needsPrefix = false;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue