-
Notifications
You must be signed in to change notification settings - Fork 152
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
C_BaseCombatWeapon::GetCSWeaponData(...) returned nullptr. #94
Comments
Maybe you should check if the weapon you are calling GetCSWeaponData exists, in other words if it isn't a nullptr. For example if you want to call GetCSWeaponData on your current local player's weapon you would do it like this: |
I have a check, |
I'm having the same issue, generally issues with weapon data just randomly crashing |
I'm a bit late to the party, but I'll give it a shot: has anyone achieved a more or less ghetto fix? |
|
Well it kinda works but not really. I mean it helps to prevent csgo from crashing but it still doesn't always return corrent WeaponData. For some weapons I don't get any Data, for some wrong and for some the correct |
@CodingTimeDEV Have you been able to fix this issue? |
I'm kinda late but i found the issue. |
I've been able to reproduce this crash with a fresh git clone of the repo.
Attempting to use IsGun, IsRifle, ... causes a crash due to GetCSWeaponData returning nullptr.
The text was updated successfully, but these errors were encountered: