Correct "is this palette empty?" function

This notably caused decantation to delete non-empty palettes, which crashes
This commit is contained in:
ISSOtm
2022-03-12 18:56:46 +01:00
committed by Eldred Habert
parent ac02382632
commit 71e22f3bfe

View File

@@ -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();