Skip to content

Commit

Permalink
Fixed potential crash when checking if ortho cam plugin is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Oct 21, 2019
1 parent 2bc1530 commit b7bc8ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion KK_QuickAccessBox/KK_QuickAccessBox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>embedded</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\..\..\Games\Koikatsu\BepInEx\scripts\</OutputPath>
<OutputPath>..\..\..\..\Games\Koikatsu\BepInEx\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
2 changes: 1 addition & 1 deletion KK_QuickAccessBox/Thumbs/ThumbnailGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static IEnumerator MakeThumbnail(IEnumerable<ItemInfo> itemList, string o
Texture2D thumbBackground;
try
{
if (manualMode && Chainloader.Plugins.Select(MetadataHelper.GetMetadata).All(x => x.GUID != "KK_OrthographicCamera"))
if (manualMode && Chainloader.Plugins.Where(x => x != null).Select(MetadataHelper.GetMetadata).All(x => x.GUID != "KK_OrthographicCamera"))
throw new ArgumentException("Manual mode needs the KK_OrthographicCamera plugin to work");

if (itemList == null) throw new ArgumentNullException(nameof(itemList));
Expand Down

0 comments on commit b7bc8ad

Please sign in to comment.