mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use std::unique_ptr for rgblink sections (#1337)
This commit is contained in:
@@ -57,7 +57,7 @@ static void initFreeSpace() {
|
||||
static void assignSection(Section §ion, MemoryLocation const &location) {
|
||||
// Propagate the assigned location to all UNIONs/FRAGMENTs
|
||||
// so `jr` patches in them will have the correct offset
|
||||
for (Section *next = §ion; next != nullptr; next = next->nextu) {
|
||||
for (Section *next = §ion; next != nullptr; next = next->nextu.get()) {
|
||||
next->org = location.address;
|
||||
next->bank = location.bank;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user