mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Use C++ iterator for fragment/union "pieces" of RGBLINK sections
This commit is contained in:
@@ -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