01-04-2012, 12:04 AM
0x5E5815 is located a function called by in CPed:
rocessControl (0x5E8CD0) right after a call to RpAnimBlendClumpGetFirstAssociation, which requests RpAnimBlendAssociation->sAnimID. Given that RpAnimBlendClumpGetFirstAssociation returns a pointer and sAnimID is requested on the [tt]eax[/tt] object (return value), and RpAnimBlendClumpGetFirstAssociation may return NULL if RpAnimBlendClumpIsInitialized equals false, Rockstar failed to add a NULL-check here and assumed that a proper value would be returned.
The method does a whole load of things. It processes animation blending based on the surface the ped is standing on and then deals with audio, and is called right after a function which *gives* you weapons. What I think happened here is that some script-invoked event occurred right at the moment that you were entering a vehicle (e.g. receiving a weapon, teleporting or something similar).
rocessControl (0x5E8CD0) right after a call to RpAnimBlendClumpGetFirstAssociation, which requests RpAnimBlendAssociation->sAnimID. Given that RpAnimBlendClumpGetFirstAssociation returns a pointer and sAnimID is requested on the [tt]eax[/tt] object (return value), and RpAnimBlendClumpGetFirstAssociation may return NULL if RpAnimBlendClumpIsInitialized equals false, Rockstar failed to add a NULL-check here and assumed that a proper value would be returned.The method does a whole load of things. It processes animation blending based on the surface the ped is standing on and then deals with audio, and is called right after a function which *gives* you weapons. What I think happened here is that some script-invoked event occurred right at the moment that you were entering a vehicle (e.g. receiving a weapon, teleporting or something similar).