mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-23 23:34:32 +00:00
Fix a typo in a comment
This commit is contained in:
@@ -294,8 +294,7 @@ static void decant(std::vector<AssignedSets> &assignments, std::vector<ColorSet>
|
|||||||
// properties
|
// properties
|
||||||
// NB: this does mean that the first step might get empty palettes as its input!
|
// NB: this does mean that the first step might get empty palettes as its input!
|
||||||
// NB: this is safe to do because we go towards the beginning of the vector, thereby not
|
// NB: this is safe to do because we go towards the beginning of the vector, thereby not
|
||||||
// invalidating our iteration (thus, iterators should not be used to drivethe outer
|
// invalidating our iteration (so iterators should not be used to drive the outer loop)
|
||||||
// loop)
|
|
||||||
if (assignments[from].empty()) {
|
if (assignments[from].empty()) {
|
||||||
assignments.erase(assignments.begin() + from);
|
assignments.erase(assignments.begin() + from);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user