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
1 changed files with 4 additions and 0 deletions

View File

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