Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
Make sure we're not set to none (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson authored Sep 17, 2019
1 parent 68dd3ea commit 0b5779b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/PlatformUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private static bool IsPlatformSupported(SupportedPlatforms target, SupportedPlat
public static bool IsPlatformSupported(this UnityEditor.BuildTarget editorBuildTarget, SupportedPlatforms platforms)
{
var target = GetSupportedPlatformMask(editorBuildTarget);
return IsPlatformSupported(target, platforms);
return platforms != 0 && IsPlatformSupported(target, platforms);
}

private static SupportedPlatforms GetSupportedPlatformMask(UnityEditor.BuildTarget editorBuildTarget)
Expand Down

0 comments on commit 0b5779b

Please sign in to comment.