Skip to content

Commit 22cb33e

Browse files
Exter-NOttermandias
authored andcommitted
Fix -- texture prefixing in ResourceTree
1 parent 895e705 commit 22cb33e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Penumbra/Interop/ResourceTree/ResolveContext.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ internal record class ResolveContext(Configuration Config, IObjectIdentifier Ide
4848
prefixed[lastDirectorySeparator + 1] = (byte)'-';
4949
prefixed[lastDirectorySeparator + 2] = (byte)'-';
5050
gamePath.Span[(lastDirectorySeparator + 1)..].CopyTo(prefixed[(lastDirectorySeparator + 3)..]);
51+
prefixed[^1] = 0;
5152

52-
if (!Utf8GamePath.FromSpan(prefixed, out var tmp))
53+
if (!Utf8GamePath.FromSpan(prefixed[..^1], out var tmp))
5354
return null;
5455

5556
gamePath = tmp.Path.Clone();

0 commit comments

Comments
 (0)