Skip to content

Commit

Permalink
Fixed compile error oops.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Jan 27, 2024
1 parent abb5e83 commit 4e86cff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion FRBDK/Glue/NAudioPlugin/Embedded/NAudio_Song.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public float Volume
get => volume;
set
{
volume = value;
// prevent it from going negative. Although technically supported, it's confusing...
volume = System.Math.Max(value, 0);
if (reader != null)
{
reader.Volume = volume;
Expand Down
2 changes: 1 addition & 1 deletion FRBDK/Glue/NAudioPlugin/Managers/AssetTypeInfoManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private static string GetLoadSongCode(IElement screenOrEntity, NamedObjectSave n

var path = $"Content/{relativeFileName}";

var contentManagerName = contentManagerName ?? "contentManagerName";
var contentManagerName = contentManager ?? "contentManagerName";

if(file.DestroyOnUnload == false)
{
Expand Down

0 comments on commit 4e86cff

Please sign in to comment.