Skip to content

Commit 2e9628b

Browse files
committed
fix: Remove clone string destructive
1 parent c0e978d commit 2e9628b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/JCSUnity/Scripts/Util/JCS_Util.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,8 @@ public static bool IsClone(string name)
804804
/// </summary>
805805
public static string RemoveCloneString(Object obj)
806806
{
807-
return RemoveCloneString(obj.name);
807+
obj.name = RemoveCloneString(obj.name);
808+
return obj.name;
808809
}
809810
public static string RemoveCloneString(string name)
810811
{

0 commit comments

Comments
 (0)