From 0e852fd9d8d15d2e31e7e58b0705284fcd85b0fa Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 19:51:32 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/Jobs/JobInheritance.cpp, Source/Contents/Jobs/JobInheritance.h Batch #16466 by eAthena: 2 byte-identical, 0 confirmed by peer review. - fn_23587 IsPlayerJob: byte-identical - fn_23887 CSession::IsPlayerJobId: byte-identical (already on main) Merged automatically: every function is byte-identical to the original. --- Source/Contents/Jobs/JobInheritance.cpp | 2 +- Source/Contents/Jobs/JobInheritance.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Contents/Jobs/JobInheritance.cpp b/Source/Contents/Jobs/JobInheritance.cpp index 1559891a7..56ed8be4e 100644 --- a/Source/Contents/Jobs/JobInheritance.cpp +++ b/Source/Contents/Jobs/JobInheritance.cpp @@ -711,7 +711,7 @@ bool CSession::IsJobWeaponTypeAllowed(int job, std::int64_t weaponType) const { // OFFSET: 0x00DFBCE0 // FUNCTION: fn_23587 -__declspec(noinline) bool __stdcall IsPlayerJob(int job) { +__declspec(noinline) int __stdcall IsPlayerJob(int job) { const auto value = static_cast(job); return value - JT_NOVICE_H <= unsigned(JT_MER_BEGIN - 1 - JT_NOVICE_H) || value <= unsigned(JT_SUMMER2); } diff --git a/Source/Contents/Jobs/JobInheritance.h b/Source/Contents/Jobs/JobInheritance.h index ce9d88a67..243f9e683 100644 --- a/Source/Contents/Jobs/JobInheritance.h +++ b/Source/Contents/Jobs/JobInheritance.h @@ -4,7 +4,7 @@ #include #include -bool __stdcall IsPlayerJob(int job); +int __stdcall IsPlayerJob(int job); bool __stdcall IsVisibleJob(int job); int __stdcall GetWeaponViewValue(int weapon); int __stdcall GetDualWieldWeaponType(int first, int second);