Load Game: fixed all games not displaying when filter was cleared (bug #25090)
This was caused by the conversion to boost::dynamic_bitset in fe08701b7c
. Apparently, dynamic_bitset
does not initialize every member to the given value as std::vector<bool> did.
This commit is contained in:
parent
b3ffcdb4d9
commit
87a5382fb2
1 changed files with 2 additions and 1 deletions
|
@ -234,7 +234,8 @@ void tgame_load::filter_text_changed(ttext_* textbox, const std::string& text)
|
|||
return;
|
||||
last_words_ = words;
|
||||
|
||||
boost::dynamic_bitset<> show_items(list.get_item_count(), true);
|
||||
boost::dynamic_bitset<> show_items;
|
||||
show_items.resize(list.get_item_count(), true);
|
||||
|
||||
if(!text.empty()) {
|
||||
for(unsigned int i = 0; i < list.get_item_count(); i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue