Skip to content
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

physgun_switch crashes the server if the player entity is gone #58

Closed
Nafrayu opened this issue Jan 20, 2023 · 1 comment
Closed

physgun_switch crashes the server if the player entity is gone #58

Nafrayu opened this issue Jan 20, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Nafrayu
Copy link

Nafrayu commented Jan 20, 2023

Describe the bug
The command "physgun_switch" crashes the server if the player entity is gone (e.g. player has been accidentally removed by a trigger/button)

To Reproduce

  • Somehow manage to remove yourself
  • Enter physgun_switch into the console
  • The server crashes

Expected behavior
The server shouldn't crash

Additional context
Since commands like "use weapon_ar2", "lastinv", or "phys_swap" don't crash the server i think this should be fixed so the commands behaviour is in-line with the rest of source.

I realize that this is super obscure, and should only happen if sv_cheats is enabled, or on really terribly made maps - please just mark as "Won't fix" if this is isn't a priority.

@Nafrayu Nafrayu added the bug Something isn't working label Jan 20, 2023
@TEAMJBMOD
Copy link
Member

Fixed in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants