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:
Charles Dang 2016-09-24 14:38:18 +11:00
parent b3ffcdb4d9
commit 87a5382fb2

View file

@ -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++) {