From a54b5e9e1ff13ba3bfe18cb1b3a14cf918cb4259 Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 18 May 2023 20:07:47 +0200 Subject: [PATCH] fixed wrong variable bug --- Tranga/Chapter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/Chapter.cs b/Tranga/Chapter.cs index c3e0331..f49e113 100644 --- a/Tranga/Chapter.cs +++ b/Tranga/Chapter.cs @@ -20,7 +20,7 @@ public struct Chapter this.chapterNumber = chapterNumber; this.url = url; string chapterName = string.Concat((name ?? "").Split(Path.GetInvalidFileNameChars())); - double multiplied = Convert.ToDouble(chapterName, new NumberFormatInfo() { NumberDecimalSeparator = "." }) * + double multiplied = Convert.ToDouble(chapterNumber, new NumberFormatInfo() { NumberDecimalSeparator = "." }) * Convert.ToInt32(volumeNumber); this.fileName = $"{chapterName} - V{volumeNumber}C{chapterNumber} - {multiplied}"; }