1
0
Fork 0
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:
AnyOldName3 2024-02-23 00:06:51 +00:00
parent db5a43db30
commit 1717e696b1

View file

@ -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;