Bug #1865
open
Qt: Segmentation fault; Storms have no player.
Added by John Robertson 3 days ago.
Updated 1 day ago.
Description
On a lark, I had a Spy attack a Storm.
Insta-BOOM, evidently, Storms do not belong to a player.
Thus calls operating on `unit_owner(target_unit)` cause a segmentation fault.
Applying the patch, shows the 'Choose Your Strategy' dialog.

Files
Related issues
1 (1 open — 0 closed)
- Target version set to 3.3.0
Loading that savegame gives also some errors not related to the bug in this ticket -> Opened #1866
- Related to Bug #1867: gtk: Action selection dialog crash with flagless unit added
- Subject changed from Segmentation fault; Storms have no player. to Qt: Segmentation fault; Storms have no player.
gtk-clients (at least gtk4) have the similar bug -> #1867
Even flagless targets should give the same basic message, just without the owner information.
My proposal for the fix attached.
Also available in: Atom
PDF