diff --git a/pcsx2/Elfheader.cpp b/pcsx2/Elfheader.cpp index 5ad61b408b..37a03280c8 100644 --- a/pcsx2/Elfheader.cpp +++ b/pcsx2/Elfheader.cpp @@ -188,7 +188,7 @@ u32 ElfObject::getEntryPoint() std::pair ElfObject::getTextRange() { - if (isPSXElf && hasProgramHeaders()) + if (!isPSXElf && hasProgramHeaders()) { for (int i = 0; i < header.e_phnum; i++) {