Fix crash is module is nullptr

This commit is contained in:
momo5502
2025-08-10 08:37:02 +02:00
parent fc9a240d9f
commit b980ff6277
2 changed files with 2 additions and 2 deletions

View File

@@ -129,7 +129,7 @@ namespace
const auto rip = state->win_emu_.emu().read_instruction_pointer();
const auto* mod = state->win_emu_.mod_manager.find_by_address(rip);
const auto is_main_access =
mod == state->win_emu_.mod_manager.executable || state->modules_.contains(mod->name);
mod && (mod == state->win_emu_.mod_manager.executable || state->modules_.contains(mod->name));
if (!is_main_access && !state->verbose_)
{