Follow-up Comment #1, bug #22400 (project freeciv):

Your test looks a bit weak. What would happen if the tech is A_LAST? Or if the
tech is out of ruleset limits?

I think it shoould looks like:

(A_NONE == tech
 || (A_UNSET != tech
     && A_FUTURE != tech
     && NULL == valid_advance_by_number(tech)))


Reply to this item at:


  Message posté via/par Gna!

Freeciv-dev mailing list

Reply via email to