Closed nosoop closed 3 years ago
The weird thing is that other nearby functions have a non-null check for sv_gravity
:
The baffling part is why sv_gravity
isn't valid in the first place — it gets assigned once and shouldn't be accessed any further. The convar is valid for TF2, and in my tests the ConVar resolves to a valid address.
My goal here is to not need that null check at all.
This may be fixed with 5392e435e055dd997c5f934b853c6e912d940b10. Not 100% sure, though.
Odd bug. The following line is reported to crash on Windows due to an invalid access in
ConVar::GetFloat()
:https://github.com/nosoop/rcbot2/blob/000a20d1881c83a81685aa5ea140c5820f0cf264/utils/RCBot2_meta/bot_task.cpp#L97
Not sure if there's any way to reproduce this.