Forgot to double the value

This commit is contained in:
Matt Nadareski
2016-04-12 18:11:43 -07:00
parent 1dd36cca24
commit 61fc76f35d
3 changed files with 4 additions and 3 deletions

View File

@@ -179,7 +179,7 @@ namespace SabreTools.Helper
foreach (XmlNode child in node.SelectNodes("data"))
{
// Add an offset to the match if one exists
string header = (child.Attributes["offset"] != null && child.Attributes["offset"].Value != "0" ? "^.{" + Convert.ToInt32(child.Attributes["offset"].Value, 16) + "}" : "^");
string header = (child.Attributes["offset"] != null && child.Attributes["offset"].Value != "0" ? "^.{" + (Convert.ToInt32(child.Attributes["offset"].Value, 16) * 2) + "}" : "^");
header += child.Attributes["value"].Value;
// Now add the header and value to the appropriate skipper dictionary