Fixed VS2015 compilation error

This commit is contained in:
Souryo 2017-06-29 14:34:22 -04:00
parent ae2f591856
commit 23ccf25915

View file

@ -54,7 +54,8 @@ namespace Mesen.GUI.Forms.HdPackEditor
string fileContent = File.ReadAllText(hdDefFile);
Match match = Regex.Match(fileContent, "<scale>(\\d*)");
if(match.Success) {
if(Int32.TryParse(match.Groups[1].ToString(), out int scale)) {
int scale;
if(Int32.TryParse(match.Groups[1].ToString(), out scale)) {
scaleFilter = scale;
}
}