Skip to content

CustomAudio Uninitialized config parameter leads to immediate/permanent NullReferenceException #127

Description

@Raincode

The parameter overwriteVol is used but not properly initialized in the Awake() function causing what is essentially a crash of the game upon loading into a world.

Suggested fix:
Add appropriate initialization line to Awake() function, e.g.:
overwriteVol = Config.Bind<bool>("General", "OverwriteVol", false, "Overwrite audio volume");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions