diff --git a/Cronos The New Dawn/dllmain.cpp b/Cronos The New Dawn/dllmain.cpp index e1cdaee..e3626a6 100644 --- a/Cronos The New Dawn/dllmain.cpp +++ b/Cronos The New Dawn/dllmain.cpp @@ -270,7 +270,7 @@ static void AspectFixEnabled(bool fix_enabled) { logger->info("Aspect fix enabled"); FOVFixEnabled(fix_enabled); } - if (!fix_enabled) { + if (!fix_enabled && Aspectaddress) { Memory::RestoreBytes(Aspectaddress); logger->info("Aspect ratio fix disabled"); if (!g_fov_fix_enabled) @@ -378,14 +378,8 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD reason, LPVOID) { if (reason == DLL_PROCESS_ATTACH) { - if (reason == DLL_PROCESS_ATTACH) - { - if (reason == DLL_PROCESS_ATTACH) - { - InitializeLogger(); - logger->info("Plugin {} loaded.", PLUGIN_NAME); - } - } + InitializeLogger(); + logger->info("Plugin {} loaded.", PLUGIN_NAME); } else if (reason == DLL_PROCESS_DETACH) {