dont message removing empty hook

This commit is contained in:
Akash Mozumdar 2019-02-04 14:31:32 -05:00
parent 1759b74fd3
commit b9a4a94d61

View File

@ -285,7 +285,7 @@ void TextHook::RemoveReadCode()
void TextHook::Clear() void TextHook::Clear()
{ {
std::scoped_lock lock(*viewMutex); std::scoped_lock lock(*viewMutex);
ConsoleOutput(REMOVING_HOOK, hp.name); if (*hp.name) ConsoleOutput(REMOVING_HOOK, hp.name);
if (hp.type & DIRECT_READ) RemoveReadCode(); if (hp.type & DIRECT_READ) RemoveReadCode();
else RemoveHookCode(); else RemoveHookCode();
NotifyHookRemove(address); NotifyHookRemove(address);