(In game "Test":
- take macedonians, build demetrius hero and a boltshooter.
- withtout the patch:
* destroy the Boltshooter: get a warning/error
* unpacked the Boltshooter: you'll get a segfault)
There are different way to prevent that. Basically transforming the error message in StatusBars in an early return should be sufficient (Imo it's too much hidding things).
Input are welcome.
The change in GiveMembersWithValidClass needs to be consider carefully.