Ticket #44852

Redundant check in citizens_update()

Date d'ouverture: 2022-06-18 05:28 Dernière mise à jour: 2022-08-05 08:59

Rapporteur:
Propriétaire:
(Aucun)
Type:
État:
Ouvert
Composant:
Jalon:
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Aucun
Fichier:
Aucun

Détails

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 History (2/2 Histories)

2022-06-18 05:28 Updated by: ihnatus
  • New Ticket "Redundant check in citizens_update()" created
2022-08-05 08:59 Updated by: cazfi

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion