Fix: Exception on destroy if hook was never active
parent
116329ccd7
commit
96413ffac2
|
@ -175,7 +175,10 @@ namespace SkyHook
|
|||
|
||||
private void OnDestroy()
|
||||
{
|
||||
_StopHook();
|
||||
if (isHookActive)
|
||||
{
|
||||
_StopHook();
|
||||
}
|
||||
}
|
||||
|
||||
private void Update()
|
||||
|
|
Reference in New Issue