Verarbeitung von P_NODROP korrigert
Ein Leerstring in P_NODROP fuehrte dazu, dass beim Ablegen oder
Aufheben gar keine Fehlermeldung ausgegeben wurde, der Vorgang aber
abgebrochen wurde. Dieser Patch behebt das Problem, indem nun der
Leerstring als !=0 interpretiert und die Defaultmeldung ausgegeben
wird.
Change-Id: I8fcc5c2fea6c194a84bd4650bc8ee7ffeec7c620
diff --git a/std/living/put_and_get.c b/std/living/put_and_get.c
index 451f7af..412a341 100644
--- a/std/living/put_and_get.c
+++ b/std/living/put_and_get.c
@@ -181,7 +181,8 @@
" nicht mehr rein.");
case ME_CANT_BE_DROPPED:
- if (o && stringp(str = o->QueryProp(P_NODROP)))
+ str = o->QueryProp(P_NODROP);
+ if (o && stringp(str) && sizeof(str))
return str;
if (dest == environment())
@@ -193,7 +194,8 @@
return "So wirst Du " + wen1 + " nicht los...";
case ME_CANT_BE_TAKEN:
- if (o && stringp(str = o->QueryProp(P_NOGET)))
+ str = o->QueryProp(P_NODROP);
+ if (o && stringp(str) && sizeof(str))
return str;
if (stringp(str = environment(o)->QueryProp(P_NOLEAVE_MSG)))