Skip to content

Commit

Permalink
Fix natives with missing return types
Browse files Browse the repository at this point in the history
  • Loading branch information
alexguirre committed Dec 31, 2017
1 parent 92f6075 commit 5bc902c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Elements/BigMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public bool IsLoaded
{
get
{
return _sc == null || NativeFunction.Natives.HasScaleformMovieLoaded(_sc.Handle);
return _sc == null || NativeFunction.Natives.HasScaleformMovieLoaded<bool>(_sc.Handle);
}
}

Expand All @@ -37,7 +37,7 @@ public void Load(bool waitToLoad)
{
var timeout = 1000;
var start = System.DateTime.Now;
while (!NativeFunction.Natives.HasScaleformMovieLoaded(_sc.Handle) && System.DateTime.Now.Subtract(start).TotalMilliseconds < timeout)
while (!NativeFunction.Natives.HasScaleformMovieLoaded<bool>(_sc.Handle) && System.DateTime.Now.Subtract(start).TotalMilliseconds < timeout)
GameFiber.Yield();
}
}
Expand Down

0 comments on commit 5bc902c

Please sign in to comment.