forked from github/server
bugfix getbuilding(r)
This commit is contained in:
parent
e84741906b
commit
aa2ffde75e
|
@ -1,6 +1,6 @@
|
|||
/* vi: set ts=2:
|
||||
*
|
||||
* $Id: build.c,v 1.4 2001/02/04 08:47:39 enno Exp $
|
||||
* $Id: build.c,v 1.5 2001/02/04 08:52:24 enno Exp $
|
||||
* Eressea PB(E)M host Copyright (C) 1998-2000
|
||||
* Christian Schlittchen (corwin@amber.kn-bremen.de)
|
||||
* Katja Zedel (katze@felidae.kn-bremen.de)
|
||||
|
@ -161,7 +161,7 @@ struct building *
|
|||
getbuilding(const struct region * r)
|
||||
{
|
||||
building * b = findbuilding(getid());
|
||||
if (r!=b->region) return NULL;
|
||||
if (b==NULL || r!=b->region) return NULL;
|
||||
return b;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue