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

[fix] rec can be undefined in IPS.prototype.export

This commit is contained in:
DSG (Destitute Streetdwelling Guttersnipe) 2023-08-23 03:18:51 +00:00
parent dea6d46018
commit 8e2d73eb21

View file

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