mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-04 03:05:36 +00:00
Do not reuse Patch struct for outputting assertions (#2184)
This commit is contained in:
1 parent
6c76606839
commit
9095c5b320
9 files changed
+427
-361
No files matched your search
@@ -175,7 +175,7 @@ static void mergeSections(Section &target, std::unique_ptr<Section> &&other) {
|
||||
target.data.insert(target.data.end(), RANGE(other->data));
|
||||
// Adjust patches' PC offsets
|
||||
for (Patch &patch : other->patches) {
|
||||
patch.pcOffset += other->offset;
|
||||
patch.rpn.pcOffset += other->offset;
|
||||
}
|
||||
} else if (!target.data.empty()) {
|
||||
assume(other->size == 0);
|
||||
|
||||
Reference in new issue
Block a user