diff --git a/src/shim/hooks/system_output.cpp b/src/shim/hooks/system_output.cpp index ab57e1f..59c9b25 100644 --- a/src/shim/hooks/system_output.cpp +++ b/src/shim/hooks/system_output.cpp @@ -202,7 +202,7 @@ TotalState g_total; const void* species_def(int species) { if (!g_env.exe_base || species < 0 || species > 6) return nullptr; - const void* p = reinterpret_cast(A::SpeciesDefTable_base + g_env.exe_base + + const void* p = reinterpret_cast(A::g_SpeciesDefTable + g_env.exe_base + std::uintptr_t(species) * 0x184); return readable(p, 0x54) ? p : nullptr; }