Fix bugs with static containers not being reset between unit test runs. Add in player test checks for seeded damage reduction test.

This commit is contained in:
2024-06-25 16:51:52 -05:00
parent 6cb67ccaa6
commit fd62ab749c
4 changed files with 33 additions and 1 deletions
+9
View File
@@ -81,6 +81,15 @@ Menu::Menu(vf2d pos,vf2d size)
}
void Menu::InitializeMenus(){
std::for_each(menus.begin(),menus.end(),[](std::pair<MenuType,Menu*>data){delete data.second;}); //EW RAW POINTER.
menus.clear();
for(auto&[key,value]:DATA["ItemCategory"].GetKeys()){
inventoryListeners[key].clear();
merchantInventoryListeners[key].clear();
}
equipStatListeners.clear();
chapterListeners.clear();
stack.clear();
stack.reserve(MAX_MENUS);
InitializeConsumableInventoryWindow();
InitializeClassSelectionWindow();