CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.61k stars 4.17k forks source link

SIGSEGV when pressing s while aiming a reach weapon #36499

Closed miguel-swanson closed 4 years ago

miguel-swanson commented 4 years ago

Describe the bug

A segmentation fault occurs when you press the 's' key while aiming a reach weapon.

Steps To Reproduce

  1. Give yourself a reach weapon (I tested a steel spear, lucerne hammer, pike).
  2. Press 'f'.
  3. Press 's'. The game will crash.

Expected behavior

No crash.

Versions and configuration

Additional context

config.zip

ZhilkinSerg commented 4 years ago

Looks like something that was not fixed in #35132. Actually an oversight in #35187