[Freeciv-tickets] [freeciv] #44852: Redundant check in citizens_update()

Back to archive index
OSDN Ticket System norep****@osdn*****
Sat Oct 15 12:09:18 JST 2022


#44852: Redundant check in citizens_update()

  Open Date: 2022-06-17 23:28
Last Update: 2022-10-15 06:09

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/44852
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44852

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-10-15 06:09 Updated by: cazfi
 * Status Update from Open to Closed
 * Resolution Update from Accepted to Fixed


---------------------------------------------------------------------
Ticket Status:

      Reporter: ihnatus
         Owner: cazfi
          Type: Bugs
        Status: Closed
      Priority: 5 - Medium
     MileStone: 3.0.5
     Component: Server
      Severity: 5 - Medium
    Resolution: Fixed
---------------------------------------------------------------------

Ticket details:

int selected = fc_rand(count);
...
if (selected != count)  is always true. That does not change the result (just sometimes we assign a thing to itself) but is redundant.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/44852
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44852



More information about the Freeciv-tickets mailing list
Back to archive index