CID 173898 'Constant' variable guards dead code

This commit is contained in:
Enno Rehling 2017-09-18 20:27:34 +02:00
parent fd27534132
commit 30777e5948

View file

@ -277,6 +277,10 @@ int gift_items(unit * u, int flags)
u->items = NULL; u->items = NULL;
break; break;
} }
else if (!u3) {
/* pick a last-chance recipient: */
u3 = u2;
}
} }
} }
if (u->items && u3) { if (u->items && u3) {