URL:
<http://gna.org/bugs/?20901>
Summary: Caravan destination validatation might consider unit
production to be wonder production
Project: Freeciv
Submitted by: cazfi
Submitted on: Sat 15 Jun 2013 12:32:55 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.0, 2.6.0
_______________________________________________________
Details:
When caravan on route to help wonder building checks if destination is still
valid, it doesn't check production type. It assumes it to be building, and
city_data->building.source.value.building to be valid pointer to improvement
type. If city has switched to unit building, pointer is actually to unit type,
and assumed id can be about anything - including valid wonder value (as the
case that got me to debug this problem in first place)
Fix attached.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 15 Jun 2013 12:32:56 AM EEST Name: WonderUnit.patch Size: 1kB
By: cazfi
<http://gna.org/bugs/download.php?file_id=18085>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?20901>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev