mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-29 06:17:48 +00:00
Use C++ iterator for fragment/union "pieces" of RGBLINK sections
This commit is contained in:
@@ -223,12 +223,10 @@ void out_WriteObject() {
|
||||
|
||||
putLong(fileStackNodes.size(), file);
|
||||
for (auto it = fileStackNodes.begin(); it != fileStackNodes.end(); ++it) {
|
||||
FileStackNode const &node = **it;
|
||||
|
||||
writeFileStackNode(node, file);
|
||||
writeFileStackNode(**it, file);
|
||||
|
||||
// The list is supposed to have decrementing IDs
|
||||
assume(it + 1 == fileStackNodes.end() || it[1]->ID == node.ID - 1);
|
||||
assume(it + 1 == fileStackNodes.end() || it[1]->ID == it[0]->ID - 1);
|
||||
}
|
||||
|
||||
for (Symbol const *sym : objectSymbols) {
|
||||
|
||||
Reference in New Issue
Block a user