[*] Dumb path bug

This commit is contained in:
Reece Wilson 2022-12-21 14:27:26 +00:00
parent 4e6f116925
commit a1e77a471b

View File

@ -111,7 +111,7 @@ namespace Aurora::IO::FS
if (ch == "..")
{
auto i = result.size() - 1 - (result[result.size() - 1] == kPathSplitter);
while (i >= 0 && result[i] != kPathSplitter)
while (i > 0 && result[i] != kPathSplitter)
{
--i;
}