mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-12 12:51:43 +00:00
Use C++ iterator for fragment/union "pieces" of RGBLINK sections
This commit is contained in:
+2
-2
@@ -586,8 +586,8 @@ static void applyPatches(Section §ion) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (Section *piece = §ion; piece != nullptr; piece = piece->nextPiece.get()) {
|
||||
applyFilePatches(*piece, section);
|
||||
for (Section &piece : section.pieces()) {
|
||||
applyFilePatches(piece, section);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user