JBMod / jbmod

Official bug tracker and request tracker for JBMod
https://www.jbmod.com/
14 stars 1 forks source link

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

Closed Nafrayu closed 1 year ago

Nafrayu commented 1 year ago

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

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.

TEAMJBMOD commented 1 year ago

Fixed in the next release