Fixed client dispose NRE

This commit is contained in:
Garry Newman 2016-10-12 10:19:43 +01:00
parent 9f4f555e76
commit 029cad5514

View File

@ -99,8 +99,11 @@ namespace Facepunch.Steamworks
public override void Dispose() public override void Dispose()
{ {
Voice.Dispose(); if ( Voice != null )
Voice = null; {
Voice.Dispose();
Voice = null;
}
base.Dispose(); base.Dispose();