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

> Running with the experimental ruleset (maybe linked with tech
> upkeep?): 

Seems to be. I think you got a division by 0 (potential == -1):


if (valid_advance(pimprove->obsolete_by)) {
  turns = MIN(turns, 
              total_bulbs_required_for_goal(aplayer,
advance_number(pimprove->obsolete_by))
              / (potential + 1));
}


Does the attached patch fixes the problem? I'm not sure I do understand the
logic for this effect.


(file #10232)
    _______________________________________________________

Additional Item Attachment:

File name:
20100907-08-trunk-fix-possible-division-by-0-in-improvement_effect_val.patch
Size:2 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?16656>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to