Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/nes-containers.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'NesFile.cs')
-rw-r--r--NesFile.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/NesFile.cs b/NesFile.cs
index 1b4d631..51f1760 100644
--- a/NesFile.cs
+++ b/NesFile.cs
@@ -803,7 +803,7 @@ namespace com.clusterrr.Famicom.Containers
if (Battery)
header[6] |= (1 << 1);
// 512-byte Trainer
- if (Trainer != null)
+ if (trainer.Length > 0)
header[6] |= (1 << 2);
// Hard-wired four-screen mode
if (Mirroring == MirroringType.FourScreenVram)