Aenderungen fuer wieder funktionierendes strict_types
- Deklarative Casts hinzugefuegt
- Typen gefixt
Change-Id: I44c6082d907efb241a35da248774809054f8c5ab
diff --git a/std/clothing/container_description.c b/std/clothing/container_description.c
index ca0d9c6..3f19e80 100644
--- a/std/clothing/container_description.c
+++ b/std/clothing/container_description.c
@@ -97,7 +97,7 @@
{
string id, tmp;
int idx;
- tmp = capitalize(obj->short()||"")[0..<2]
+ tmp = capitalize(({string})obj->short()||"")[0..<2]
+ (!(flags & 4) && (flags & 1) ? " ["+object_name(obj)+"]" : "");
if(flags & 3 || living(obj)) id = object_name(obj);
else
@@ -125,7 +125,7 @@
mixed objs, info;
string descr;
- iswiz = IS_LEARNER( viewer ) && viewer->QueryProp(P_WANTS_TO_LEARN);
+ iswiz = IS_LEARNER( viewer ) && ({int})viewer->QueryProp(P_WANTS_TO_LEARN);
descr = ""; objs = ({}); info = ({});
map(inv, #'stringenize/*'*/, iswiz | (flags & 2) | (flags & 4), &objs, &info);
if(flags & 1) return info;