diff --git a/PowerUtils/xex.h b/PowerUtils/xex.h index eb82e54..eb0d34e 100644 --- a/PowerUtils/xex.h +++ b/PowerUtils/xex.h @@ -144,7 +144,7 @@ inline static const T* Xex2FindOptionalHeader(const void* base, const XEX_OPTION { if (headers[i].Type == (uint32_t)type) { - if ((type & 0xFF) == 1) + if ((type & 0xFF) == 0) { return reinterpret_cast(&headers[i].Address); }