diff --git a/ArcFormats/ArcXP3.cs b/ArcFormats/ArcXP3.cs index de67616d..97660436 100644 --- a/ArcFormats/ArcXP3.cs +++ b/ArcFormats/ArcXP3.cs @@ -324,9 +324,7 @@ NextEntry: public override void Create (Stream output, IEnumerable list, ResourceOptions options, EntryCallback callback) { - var xp3_options = options as Xp3Options; - if (null == xp3_options) - xp3_options = this.GetDefaultOptions() as Xp3Options; + var xp3_options = GetOptions (options); ICrypt scheme = xp3_options.Scheme; bool compress_index = xp3_options.CompressIndex;