After saving and loading Destroying objects stops working?

public void Swaper(int slot, bool part, int id, int itemNum)
{
if(part == false)
{
ob1 = items[id];
s1 = slots[slot];
idHolder = slot;
fixFix = true;
placeHolderLevel = level[slot];
placeHolderPower = power[slot];
placeHolderDefence = defence[slot];
placeHolderAtSpeed = atSpeed[slot];
placeHolderSpeed = speed[slot];
placeHolderHealth = health[slot];
placeHolderDamage = damage[slot];
}
if(part == true)
{
ob2 = items[id];
s2 = slots[slot];
if (itemNum == 0)
{
Destroy(s1.transform.GetChild(4).gameObject);
Destroy(s2.transform.GetChild(4).gameObject);
Debug.Log(“log”);
}
if (itemNum == 1)
{
Destroy(s1.transform.GetChild(5).gameObject);
Destroy(s2.transform.GetChild(4).gameObject);
}
if (itemNum == 2)
{
Destroy(s1.transform.GetChild(4).gameObject);
Destroy(s2.transform.GetChild(5).gameObject);
}
Instantiate(ob1, s2.transform, false);
Instantiate(ob2, s1.transform, false);
placeHolder = isFull[slot];
isFull[slot] = isFull[idHolder];
isFull[idHolder] = placeHolder;
level[isClickedNum] = level[slot];
power[isClickedNum] = power[slot];
defence[isClickedNum] = defence[slot];
atSpeed[isClickedNum] = atSpeed[slot];
speed[isClickedNum] = speed[slot];
health[isClickedNum] = health[slot];
damage[isClickedNum] = damage[slot];
level[slot] = placeHolderLevel;
power[slot] = placeHolderPower;
defence[slot] = placeHolderDefence;
atSpeed[slot] = placeHolderAtSpeed;
speed[slot] = placeHolderSpeed;
health[slot] = placeHolderHealth;
damage[slot] = placeHolderDamage;
isClicked = false;
isClickedFix = false;
fixFix = false;
}

in the part - if(part == true) and if(itemNum == 1) you can see that it destroys 2 objects. This function is for swapping items in an inventory, it works perfectly however after saving and loading the part where it destroys the objects doesn’t work. i used a debug.log to see if the condition was being read and it was. Any help would be greatly appreciated.

I figured out the problem! After loading the game their would be 2 blank objects on each slot instead of one because of the way i was loading my inventory, after making it so if the slot id equals zero it does nothing the destorying was working again. It was working in the first place but because their were 2 transparent objects after loading it made it look like nothing was being destroyed.