feat(Hook/ErrorScreen): Inverted if-statement

This commit is contained in:
Yimura 2021-07-24 15:00:23 +02:00
parent 411c2dd168
commit 379cc8129b

View File

@ -16,8 +16,8 @@ namespace big
BOOL background BOOL background
) )
{ {
if (SCRIPT::GET_HASH_OF_THIS_SCRIPT_NAME() != RAGE_JOAAT("shop_controller")) if (SCRIPT::GET_HASH_OF_THIS_SCRIPT_NAME() == RAGE_JOAAT("shop_controller")) return;
return g_hooking->m_error_screen_hook.get_original<decltype(&hooks::disable_error_screen)>()(entryHeader, entryLine1, instructionalKey, entryLine2, p4, p5, p6, p7, background); return g_hooking->m_error_screen_hook.get_original<decltype(&hooks::disable_error_screen)>()(entryHeader, entryLine1, instructionalKey, entryLine2, p4, p5, p6, p7, background);
return;
} }
} }