From 4b3bd49242379a6e49a884be25b4d71209de725e Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Tue, 22 Feb 2022 13:38:51 +0100 Subject: [PATCH] Fix wrong possessable name determination --- Runtime/Visitors/Scripts/VisitorPossessions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Visitors/Scripts/VisitorPossessions.cs b/Runtime/Visitors/Scripts/VisitorPossessions.cs index ced7e15..0c1eb4e 100644 --- a/Runtime/Visitors/Scripts/VisitorPossessions.cs +++ b/Runtime/Visitors/Scripts/VisitorPossessions.cs @@ -314,7 +314,7 @@ namespace Passer { string possessableName = possessablePath; int lastSlashIx = possessablePath.LastIndexOf('/'); if (lastSlashIx >= 0) - possessableName = possessablePath.Substring(+1); + possessableName = possessablePath.Substring(lastSlashIx + 1); possessableName = possessableName.ToLower();