project-imprimis / imprimis

Imprimis, the team based destroyable world shooter game
https://project-imprimis.github.io/www/
15 stars 5 forks source link

Crash when pasting geometry in edit mode #63

Open b-sharman opened 2 years ago

b-sharman commented 2 years ago

How to reproduce

  1. Join the Imprimis editing server and enter edit mode.
  2. Make a selection with the mouse.
  3. Press c to copy it.
  4. Press v to paste the geometry.

Game crashes and console says:

inconsistent msg size for 45 (14 != 15)

This appears to come from the following: https://github.com/project-imprimis/imprimis/blob/2af7aa8e8d471b663227bf5fc891d6fa3ca5fc05/game/gameclient.cpp#L1177-L1180

Expected behavior Whatever geometry was in the selection when copying should be duplicated in the selection when pasting.

Important Information:

b-sharman commented 2 years ago

https://user-images.githubusercontent.com/39754510/172292311-87da4b60-bfdb-4500-a2fd-24622df8a76a.mp4