URL:
  <http://gna.org/bugs/?23591>

                 Summary: auto_arrange_workers() may create cm result for
wrong city radius
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Tue 12 May 2015 08:11:10 PM EEST
                Category: general
                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.4.5, 2.5.1, 2.6.0, 3.0.0

    _______________________________________________________

Details:

Found while trying to reproduce bug reported at
http://forum.freeciv.org/f/viewtopic.php?f=11&t=584

auto_arrange_workers() calls cm_result_new() before city radius gets updated
in city_refresh(), so if the latter does change the radius, result structure
returned by former is not suitable for later calls like cm_query_result().

Fix attached




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to