fivem icon indicating copy to clipboard operation
fivem copied to clipboard

fix(game/five): verify pickup weapon component is valid on creation ( again, but proper )

Open slashkeyvalue opened this issue 1 year ago • 0 comments

Goal of this PR

Prevent crash caused by invalid pickup weapon components on pickup creation.

This is an improvement on #2797 which was absolutely garbage.

How is this PR achieving the goal

Adds proper validations on pickup creation

This PR applies to the following area(s)

FiveM

Successfully tested on

Game builds: 2060, 2699, 2802, 3095, 3258

Platforms: Windows

Checklist

  • [x] Code compiles and has been tested successfully.
  • [x] Code explains itself well and/or is documented.
  • [x] My commit message explains what the changes do and what they are for.
  • [x] No extra compilation warnings are added by these changes.

Fixes issues

Fixes GTA5_b3095.exe!sub_141163854 (0x456)

slashkeyvalue avatar Oct 08 '24 18:10 slashkeyvalue