another crafting table backup point

This commit is contained in:
DrPerkyLegit committed 2026-10-29 19:55:19 -04:00
1 parent 350ada405f
commit e010da4376
15 files changed
+1752 -852

No files matched your search

+9 -4
View File
@@ -1418,6 +1418,15 @@ void Recipes::_wipeRecipes()
{
int iCount = recipies->size();
/*for (int i = 0; i < iCount; i++) {
auto* recipe = (*recipies)[i];
if (recipe != nullptr && _CrtIsValidHeapPointer(recipe)) {
delete recipe;
(*recipies)[i] = nullptr;
}
}*/
for (int i = 0; i < iCount; i++) {
Recipy::INGREDIENTS_REQUIRED& req = m_pRecipeIngredientsRequired[i];
@@ -1427,10 +1436,6 @@ void Recipes::_wipeRecipes()
delete[] req.uiGridA;
}
for (int i = 0; i < iCount; i++) {
delete (*recipies)[i];
}
recipies->clear();
delete[] m_pRecipeIngredientsRequired;