mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 22:20:33 +00:00
Format before clang notices and sends me an angry email
This commit is contained in:
parent
db5a43db30
commit
1717e696b1
@ -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…
x
Reference in New Issue
Block a user