JBMod / jbmod

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

Negative bodygroups crash the client when they shouldnt. #80

Open relt-1 opened 1 year ago

relt-1 commented 1 year ago

Describe the bug Models with a negative body group id will crash the client when looked at.

To Reproduce

  1. Create a model with body groups
  2. Look at it
  3. Type ent_fire !picker setbodygroup -1 The game will crash

Expected behavior The game should support 2^32 bodygroup ids, but because of this, it only supports 2^31. Change the bodygroup value to a unsigned int and the problem should be solved.