From 2ba96ca0931d995dd62aaeedbfb32d22a3784b89 Mon Sep 17 00:00:00 2001 From: "DSG (Destitute Streetdwelling Guttersnipe)" <90743025+Destitute-Streetdwelling-Guttersnipe@users.noreply.github.com> Date: Sat, 23 Sep 2023 16:11:49 +0700 Subject: [PATCH] fix truncation logic (`truncate` is a property of class IPS) --- js/formats/ips.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/formats/ips.js b/js/formats/ips.js index 59cc7b3..f0eb603 100644 --- a/js/formats/ips.js +++ b/js/formats/ips.js @@ -63,8 +63,8 @@ IPS.prototype.export=function(fileName){ } tempFile.writeString('EOF'); - if(rec && rec.truncate) - tempFile.writeU24(rec.truncate); + if(this.truncate) + tempFile.writeU24(this.truncate); return tempFile @@ -229,4 +229,4 @@ function createIPSFromFiles(original, modified){ return patch -} \ No newline at end of file +}