Skip to content

Commit 8caaa4f

Browse files
committed
Fixed potential bug reported by kitkat where character items may not process properly.
1 parent 3febe94 commit 8caaa4f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.95.19.0")]
55-
[assembly: AssemblyFileVersion("1.95.19.0")]
54+
[assembly: AssemblyVersion("1.95.20.0")]
55+
[assembly: AssemblyFileVersion("1.95.20.0")]

RemnantCharacter.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,10 @@ public static List<RemnantCharacter> GetCharactersFromSave(string saveFolderPath
435435
continue;
436436
}
437437
List<string> saveItems = new List<string>();
438-
inventories[i] = inventories[i].Substring(inventories[i].IndexOf("/Game/Characters/Player/Base/Character_Master_Player.Character_Master_Player_C"));
438+
string charStart = "/Game/Characters/Player/Base/Character_Master_Player.Character_Master_Player_C";
439+
string charEnd = "Character_Master_Player_C";
440+
inventories[i] = inventories[i].Substring(inventories[i].IndexOf(charStart)+charStart.Length);
441+
inventories[i] = inventories[i].Substring(0, inventories[i].IndexOf(charEnd));
439442
Regex rx = new Regex(@"/Items/Weapons(/[a-zA-Z0-9_]+)+/[a-zA-Z0-9_]+");
440443
MatchCollection matches = rx.Matches(inventories[i]);
441444
foreach (Match match in matches)

0 commit comments

Comments
 (0)