- Fixed a problem in the 3D floor mode plugin that caused an exception when saving the program preferences. Fixes #310.

This commit is contained in:
biwa 2019-11-01 00:21:02 +01:00
parent 75d6214db5
commit 6c05f1daf0

View file

@ -5,6 +5,7 @@ using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using CodeImp.DoomBuilder.Windows;
@ -23,6 +24,9 @@ namespace CodeImp.DoomBuilder.ThreeDFloorMode
#region ================== Methods
// When OK is pressed on the preferences dialog
// Prevent inlining, otherwise there are unexpected interactions with Assembly.GetCallingAssembly
// See https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.getcallingassembly?view=netframework-4.6.1#remarks
[MethodImplAttribute(MethodImplOptions.NoInlining)]
public void OnAccept(PreferencesController controller)
{
// Write preferred settings