fixed broken new unit callsign assign algo

pcap
Ondřej Hruška 7 years ago
parent 003ae692e6
commit 6d8aa4d31d
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 3
      framework/unit_registry.c

@ -346,8 +346,9 @@ bool ureg_finalize_all_init(void)
// try to assign unique callsigns // try to assign unique callsigns
if (pUnit->callsign == 0) { if (pUnit->callsign == 0) {
// this is very inefficient but should be reliable // this is very inefficient but should be reliable
bool change = false; bool change;
do { do {
change = false;
UlistEntry *xli = ulist_head; UlistEntry *xli = ulist_head;
while (xli != NULL) { while (xli != NULL) {
if (xli->unit.callsign != 0) { if (xli->unit.callsign != 0) {

Loading…
Cancel
Save