Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
#121 YU-RIS: Fix NullReferenceException
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Feb 19, 2023
1 parent cf440e5 commit 4779d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VNTextPatch.Shared/Scripts/Artemis/ArtemisAstScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public void WritePatched(IEnumerable<ScriptString> strings, ScriptLocation locat
}
}

private string SerializeMessage(LuaTable message)
private static string SerializeMessage(LuaTable message)
{
StringBuilder text = new StringBuilder();
foreach (ILuaNode item in message)
Expand All @@ -193,7 +193,7 @@ private string SerializeMessage(LuaTable message)
return text.ToString().Trim();
}

private void DeserializeMessage(string text, LuaTable table)
private static void DeserializeMessage(string text, LuaTable table)
{
table.RemoveAll(n => !(n is LuaAttribute));
foreach ((string segment, Match match) in StringUtil.GetMatchingAndSurroundingTexts(text, new Regex(@"\r\n|\[.+?\]")))
Expand Down

0 comments on commit 4779d67

Please sign in to comment.