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);