diff --git a/src/Text.hh b/src/Text.hh index 409611fb..5fe59040 100644 --- a/src/Text.hh +++ b/src/Text.hh @@ -291,6 +291,15 @@ struct parray { this->items[x] = v; } } + + bool is_filled_with(ItemT v) const { + for (size_t x = 0; x < Count; x++) { + if (this->items[x] != v) { + return false; + } + } + return true; + } } __attribute__((packed));