URL:
<http://gna.org/bugs/?23728>
Summary: "No target city for spy action" + crash
Project: Freeciv
Submitted by: cazfi
Submitted on: Thu 30 Jul 2015 02:30:40 AM EEST
Category: ai
Severity: 3 - Normal
Priority: 5 - Normal
Status: Ready For Test
Assigned to: None
Originator Email:
Open/Closed: Open
Release:
Discussion Lock: Any
Operating System: None
Planned Release: 2.5.1, 2.6.0, 3.0.0
_______________________________________________________
Details:
There was an failing assert with message "No target city for spy action" and
segfault immediately after it when that NULL tile was passed to tile_city().
Somehow goto_tile has been set to NULL while the AI task for the unit
remains.
Attached fix
- Avoids the crash even if the assert fails
- Clear advisor task (and consequently default AI task) when goto_tile gets
cleared as part of rescuing planes
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 30 Jul 2015 02:30:40 AM EEST Name: TargetlessSpy.patch Size: 2kB
By: cazfi
<http://gna.org/bugs/download.php?file_id=24699>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?23728>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev