Skip to content

Commit df499b5

Browse files
committed
Fixed GUI with respect to constructor changes in ESP#
1 parent 52da476 commit df499b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ESPSharp GUI/DockableForms/RecordViewWindow.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ private static void AddExpandGetter()
6161
public static void AddRecordData(object o)
6262
{
6363
Record record = null;
64-
var master = new ElderScrollsPlugin();
64+
ElderScrollsPlugin master;
6565

66-
var plugin = o as ElderScrollsPlugin;
67-
if (plugin != null)
68-
record = plugin.Header.Record;
66+
master = o as ElderScrollsPlugin;
67+
if (master != null)
68+
record = master.Header.Record;
6969

7070
var view = o as RecordView;
7171
if (view != null)

0 commit comments

Comments
 (0)