ref: 71e22f3bfe52a4e33b6a77e860dd6f80f4bb7e53
parent: ac02382632dc78631aa4f9256b9216093a3d19e4
author: ISSOtm <[email protected]>
date: Sat Mar 12 13:56:46 EST 2022
Correct "is this palette empty?" function This notably caused decantation to delete non-empty palettes, which crashes
--- a/src/gfx/pal_packing.cpp
+++ b/src/gfx/pal_packing.cpp
@@ -157,7 +157,7 @@
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();