Skip to content

Commit

Permalink
修复过早Dispose导致的AccessViolationException
Browse files Browse the repository at this point in the history
  • Loading branch information
Rcmcpe committed May 23, 2020
1 parent 23dfc04 commit dee30cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Arknights Automation Library/UI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public class UI : IDisposable
private readonly Adb _adb;
private readonly Assets _assets = new Assets();

private readonly FMLocator _loc = new FMLocator(new Feature2DInfo(Feature2Ds.Sift))
{CacheDir = "Assets\\Cache"};
private readonly FMLocator _loc = new FMLocator(new Feature2DInfo(Feature2Ds.Sift), "Assets\\Cache");

public UI(string adbPath)
{
Expand Down
2 changes: 1 addition & 1 deletion ImageLocator

0 comments on commit dee30cc

Please sign in to comment.