diff --git a/Facepunch.Steamworks/BaseSteamworks.cs b/Facepunch.Steamworks/BaseSteamworks.cs index ee06870..daff08e 100644 --- a/Facepunch.Steamworks/BaseSteamworks.cs +++ b/Facepunch.Steamworks/BaseSteamworks.cs @@ -25,14 +25,23 @@ public virtual void Dispose() } Disposables.Clear(); - Workshop.Dispose(); - Workshop = null; + if ( Workshop != null ) + { + Workshop.Dispose(); + Workshop = null; + } - Inventory.Dispose(); - Inventory = null; + if ( Inventory != null ) + { + Inventory.Dispose(); + Inventory = null; + } - Networking.Dispose(); - Networking = null; + if ( Networking != null ) + { + Networking.Dispose(); + Networking = null; + } if ( native != null ) {