mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Correct "is this palette empty?" function
This notably caused decantation to delete non-empty palettes, which crashes
This commit is contained in:
@@ -157,7 +157,7 @@ public:
|
||||
void clear() { _assigned.clear(); }
|
||||
|
||||
bool empty() const {
|
||||
return std::find_if_not(
|
||||
return std::find_if(
|
||||
_assigned.begin(), _assigned.end(),
|
||||
[](std::optional<ProtoPalAttrs> const &slot) { return slot.has_value(); })
|
||||
== _assigned.end();
|
||||
|
||||
Reference in New Issue
Block a user