From bb5d4ba98e2a06a6b7e4aa4187a0d19c3e51d27c Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 13 Feb 2005 09:08:56 +0000 Subject: [PATCH] use_item Fehlermeldung genau im nicht-fehlerfall gemacht.. --- src/common/gamecode/laws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/gamecode/laws.c b/src/common/gamecode/laws.c index 8640fa764..1c86b9f57 100644 --- a/src/common/gamecode/laws.c +++ b/src/common/gamecode/laws.c @@ -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 {