dst = location.GetParent().GetInventory().CreateEntityInCargoEx(src.GetType(), location.GetIdx(), location.GetRow(), location.GetCol(), location.GetFlip()); //! Only way to get flip correct
break;
default:
return null;
}
if (!dst)
{
if (!Class.CastTo(dst, GetGame().CreateObjectEx(src.GetType(), src.GetPosition(), ECE_PLACE_ON_SURFACE, RF_DEFAULT)))
{
return null;
}
}
//! @note order of operations matters! DO NOT CHANGE!