Fix: Exception on destroy if hook was never active

develop
CrackThrough 2022-11-18 18:03:51 +09:00
parent 116329ccd7
commit 96413ffac2
1 changed files with 4 additions and 1 deletions

View File

@ -175,7 +175,10 @@ namespace SkyHook
private void OnDestroy() private void OnDestroy()
{ {
_StopHook(); if (isHookActive)
{
_StopHook();
}
} }
private void Update() private void Update()