mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-21 17:23:56 +01:00
another crafting table backup point
This commit is contained in:
1 parent
350ada405f
commit
e010da4376
15 files changed
+1752
-852
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user