Skip to content

Commit

Permalink
SR1 Hotfix: Fix Freckle Bitch's crashing due to NULL rims_jobs_vehicl…
Browse files Browse the repository at this point in the history
…e_pointer (#60)

Co-authored-by: Clippy95 <[email protected]>
  • Loading branch information
Clippy95 and Clippy95 authored Dec 31, 2024
1 parent 0fceb04 commit 96541d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xenia/hid/winkey/hookables/SaintsRow1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ bool SaintsRow1Game::RotatePlayerinCustomization(RawInputState& input_state) {
max_zoom = 9.f;
xe::be<uint32_t>* rims_jobs_vehicle_pointer = multi_pointer(
supported_builds[game_build_].rims_jobs_address_ptr, {0x20, 0x98});
if (*rims_jobs_vehicle_pointer == NULL) return false;
if (!rims_jobs_vehicle_pointer || *rims_jobs_vehicle_pointer == NULL)
return false;
player_x_sin = kernel_memory()->TranslateVirtual<xe::be<float>*>(
*rims_jobs_vehicle_pointer + 0x40);
player_x_cos = kernel_memory()->TranslateVirtual<xe::be<float>*>(
Expand Down

0 comments on commit 96541d2

Please sign in to comment.