URL:
<http://gna.org/bugs/?19385>
Summary: inconsequent return-type
Project: Freeciv
Submitted by: bit
Submitted on: Mi 01 Feb 2012 14:17:23 GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: 2.3.1
Discussion Lock: Any
Operating System: None
Planned Release:
_______________________________________________________
Details:
file: control.cpp
function: bool unit_is_in_focus(const struct unit *punit)
return unit_list_search(get_units_in_focus(), punit);
doesn't return a bool.
In the VC-build this will not be accepted.
fix:
return (unit_list_search(get_units_in_focus(), punit) != NULL);
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?19385>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev