forked from github/server
use_item Fehlermeldung genau im nicht-fehlerfall gemacht..
This commit is contained in:
parent
03548f12b4
commit
bb5d4ba98e
|
@ -3720,7 +3720,7 @@ use_cmd(unit * u, struct order * ord)
|
||||||
if (itype!=NULL) {
|
if (itype!=NULL) {
|
||||||
int i = use_item(u, itype, n, ord);
|
int i = use_item(u, itype, n, ord);
|
||||||
assert(i<=0 || !"use_item should not return positive values.");
|
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)));
|
log_error(("use_item returned a value>0 for %s\n", resourcename(itype->rtype, 0)));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue