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

                 Summary: get_role_unit() returning unit that even isn't in
the ruleset
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Tue 01 Mar 2016 08:37:06 PM EET
                Category: general
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:

This seems like something from the previous ruleset has not been cleared when
the ruleset has changed. I get "Migrants" (as returned by utype_rule_name())
as L_SETTLERS unit in my own ruleset. Migrants would be L_SETTLERS unit in the
initially loaded civ2civ3 ruleset.
num_role_units() seems to work correctly, or at least I got no unit at all
(not even the wrong Migrants) from this code in startpos.c before fixing my
ruleset to contain role "Settlers" unit:

if (num_role_units(L_SETTLERS) > 0) {
  struct unit_type *start_worker = get_role_unit(L_SETTLERS, 0);





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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