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:
commit
7b6dee44cf
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
@ -229,4 +229,4 @@ function createIPSFromFiles(original, modified){
|
|||
|
||||
|
||||
return patch
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue