From bb471a84cb75fbbeff11dc58e2607b2fdb86e5b9 Mon Sep 17 00:00:00 2001 From: Christian Schlittchen Date: Tue, 13 Feb 2001 19:22:48 +0000 Subject: [PATCH] - Fix Beschreibe Privat "" --- src/common/gamecode/laws.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/common/gamecode/laws.c b/src/common/gamecode/laws.c index d4f7d63d3..d73469190 100644 --- a/src/common/gamecode/laws.c +++ b/src/common/gamecode/laws.c @@ -1,6 +1,6 @@ /* vi: set ts=2: * - * $Id: laws.c,v 1.22 2001/02/13 00:41:15 enno Exp $ + * $Id: laws.c,v 1.23 2001/02/13 19:22:48 corwin Exp $ * Eressea PB(E)M host Copyright (C) 1998-2000 * Christian Schlittchen (corwin@amber.kn-bremen.de) * Katja Zedel (katze@felidae.kn-bremen.de) @@ -1083,7 +1083,14 @@ set_display(region * r, unit * u, strlist * S) break; case P_PRIVAT: - usetprivate(u, getstrtoken()); + { + char *d = getstrtoken(); + if(d == NULL || *d == 0) { + usetprivate(u, NULL); + } else { + usetprivate(u, d); + } + } break; case P_REGION: