mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-01-18 06:48:28 +01:00
Fix search crash
This commit is contained in:
parent
36a952ca4d
commit
d364a27ed6
@ -82,8 +82,10 @@ void SearchView::NotifySaveListChanged(SearchModel * sender)
|
||||
for(i = 0; i < saveButtons.size(); i++)
|
||||
{
|
||||
RemoveComponent(saveButtons[i]);
|
||||
|
||||
delete saveButtons[i];
|
||||
}
|
||||
saveButtons.clear();
|
||||
for(i = 0; i < saves.size(); i++)
|
||||
{
|
||||
if(saveX == savesX)
|
||||
|
Loading…
x
Reference in New Issue
Block a user