mirror of
https://github.com/gbdev/rgbds.git
synced 2026-11-21 21:48:39 +00:00
Fix a typo
This commit is contained in:
1 parent
c5fe5f0762
commit
451cf69f7d
1 file changed
+1
-1
+1
-1
@@ -582,7 +582,7 @@ static void applyFilePatches(Section §ion, Section &dataSection) {
|
||||
rpnErrorAt(patch.rpn, "PC has no value outside of a section");
|
||||
dataSection.data[offset] = 0;
|
||||
} else {
|
||||
// A `jr` is *encoded* in ROM as a 1-byte (8-bit) offset, so here `typeSize == 8`,
|
||||
// A `jr` is *encoded* in ROM as a 1-byte (8-bit) offset, so here `typeSize == 1`,
|
||||
// but the object's *value* size is a 16-bit absolute address, so we pass 16 here.
|
||||
checkPatchSize(patch.rpn, value, 16);
|
||||
// Offset is relative to the byte *after* the operand
|
||||
|
||||
Reference in new issue
Block a user