Skip to content

Commit

Permalink
Fix: LuaType.LookupReferencedAssemblies setter always sets the member…
Browse files Browse the repository at this point in the history
… to true (#7)
  • Loading branch information
neolithos committed Mar 23, 2015
1 parent 8a12a0e commit 8be507f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NeoLua/LuaType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ internal static Expression ConvertToType(DynamicMetaObject a)
/// <summary>Root for all clr-types.</summary>
public static LuaType Clr { get { return clr; } }
/// <summary>Should the type resolve also scan references assemblies.</summary>
public static bool LookupReferencedAssemblies { get { return lLookupReferencedAssemblies; } set { lLookupReferencedAssemblies = true; } }
public static bool LookupReferencedAssemblies { get { return lLookupReferencedAssemblies; } set { lLookupReferencedAssemblies = value; } }
} // class LuaType

#endregion
Expand Down

1 comment on commit 8be507f

@Phosphan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I said, this is no complete fix because the value is already used in the static constructor - which is run before you can set this property. Idea: Make the start value "false", then at the end of the static constructor set it to "true".

Please sign in to comment.