Fix detection of SchemeSaveFormat when calling Save for file names.

This commit is contained in:
Ray Koopa 2020-06-29 03:03:09 +02:00
parent 861d5ea585
commit 8b92e6a8be

View File

@ -1103,7 +1103,7 @@ namespace Syroot.Worms.Armageddon
/// Saves the data in the given file with a format appropriate for <see cref="Version"/>. /// Saves the data in the given file with a format appropriate for <see cref="Version"/>.
/// </summary> /// </summary>
/// <param name="stream">The <see cref="Stream"/> to save the data to.</param> /// <param name="stream">The <see cref="Stream"/> to save the data to.</param>
public void Save(string fileName) => Save(fileName, (SchemeSaveFormat)((uint)Version >> 16)); public void Save(string fileName) => Save(fileName, (SchemeSaveFormat)((uint)Version << 16));
/// <summary> /// <summary>
/// Saves the data in the given file with the specified <paramref name="format"/>. /// Saves the data in the given file with the specified <paramref name="format"/>.