mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 12:39:41 +00:00
Format before clang notices and sends me an angry email
This commit is contained in:
parent
db5a43db30
commit
1717e696b1
1 changed files with 2 additions and 1 deletions
|
@ -69,7 +69,8 @@ std::string Misc::ResourceHelpers::correctResourcePath(
|
|||
bool needsPrefix = true;
|
||||
for (std::string_view potentialTopLevelDirectory : topLevelDirectories)
|
||||
{
|
||||
if (correctedPath.starts_with(potentialTopLevelDirectory) && correctedPath.size() > potentialTopLevelDirectory.size()
|
||||
if (correctedPath.starts_with(potentialTopLevelDirectory)
|
||||
&& correctedPath.size() > potentialTopLevelDirectory.size()
|
||||
&& correctedPath[potentialTopLevelDirectory.size()] == '\\')
|
||||
{
|
||||
needsPrefix = false;
|
||||
|
|
Loading…
Reference in a new issue