Skip to content

Commit

Permalink
Fixed Extensions Added in Last Commit
Browse files Browse the repository at this point in the history
The generic constraints was not making sure it was a reference type being
passed in. Should be fixed now.
  • Loading branch information
james7132 committed Jun 5, 2015
1 parent 600ab2d commit 9bec18b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/DanmakU/Core/DanmakuExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ public static T MatchPrefab<T> (this T danmakus, DanmakuPrefab prefab) where T :

#region Fire Functions

public static T Fire<T>(this T danmakus, FireData data, bool useRotation = true) where T : IEnumerable<Danmaku> {
public static T Fire<T>(this T danmakus, FireData data, bool useRotation = true) where T : class, IEnumerable<Danmaku>{
if (danmakus == null)
return null;
if (data == null)
Expand Down Expand Up @@ -884,7 +884,7 @@ public static T Fire<T>(this T danmakus, FireData data, bool useRotation = true
return danmakus;
}

public static T Fire<T>(this T danmakus, FireBuilder builder, bool useRotation = true) where T : IEnumerable<Danmaku> {
public static T Fire<T>(this T danmakus, FireBuilder builder, bool useRotation = true) where T : class, IEnumerable<Danmaku> {
if (danmakus == null)
return null;
if (builder == null)
Expand Down

0 comments on commit 9bec18b

Please sign in to comment.