1
0
Fork 0
mirror of https://github.com/marcrobledo/RomPatcher.js.git synced 2025-06-27 16:25:54 +00:00

Merge pull request #64 from Destitute-Streetdwelling-Guttersnipe/fix-ips-error

[fix] `rec` can be undefined in `IPS.prototype.export`
This commit is contained in:
Marc Robledo 2023-09-23 11:30:21 +02:00 committed by GitHub
commit 7b6dee44cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,8 +63,8 @@ IPS.prototype.export=function(fileName){
}
tempFile.writeString('EOF');
if(rec.truncate)
tempFile.writeU24(rec.truncate);
if(this.truncate)
tempFile.writeU24(this.truncate);
return tempFile