use_item Fehlermeldung genau im nicht-fehlerfall gemacht..

This commit is contained in:
Enno Rehling 2005-02-13 09:08:56 +00:00
parent 03548f12b4
commit bb5d4ba98e
1 changed files with 1 additions and 1 deletions

View File

@ -3720,7 +3720,7 @@ use_cmd(unit * u, struct order * ord)
if (itype!=NULL) {
int i = use_item(u, itype, n, ord);
assert(i<=0 || !"use_item should not return positive values.");
if (i<=0) {
if (i>0) {
log_error(("use_item returned a value>0 for %s\n", resourcename(itype->rtype, 0)));
}
} else {