-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(game/five): fix crash related to river entities #3184
base: master
Are you sure you want to change the base?
Conversation
If you tell me what to do, I can try it myself if you want. |
currently, the game attempts to get a river entity then immediately references it, without checking if the entity is valid, which seems to cause crashes. GTA5_b3258.exe!sub_1406C1D98 (0x18) GTA5_b3258.exe!sub_1406DEA90 (0x298) GTA5_b3258.exe!sub_140777E18 (0x349) GTA5_b3258.exe!sub_14094CBC0 (0xd5) GTA5_b3258.exe!sub_14168A14C (0x9c) GTA5_b3258.exe!sub_14093F53C (0x121) GTA5_b3258.exe!sub_14095C6AC (0x30)
was able to get things working to test, seems to be working properly |
For whatever reason, the water entities in that section of the map are duplicated - There are I don't know if that's related to the issue though or how it can be fixed |
Hmm, that's really odd |
i assume this issue isnt related to my PR then if its also present inside codewalker, really weird |
Yes, I started looking and found another place where the river does not flow, it's strange that no one noticed before. |
currently, the game attempts to get a river entity then immediately references it, without checking if the entity is valid, which seems to cause crashes.
Goal of this PR
Fix game crash
...
How is this PR achieving the goal
check if the entity is valid first
...
This PR applies to the following area(s)
FiveM
...
Successfully tested on
Game builds: ..
Platforms: Windows, Linux
Checklist
Fixes issues