From 1858a569e7e9fa250082422b927652385a7e09c2 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Mon, 7 Dec 2009 20:01:46 +0000 Subject: [PATCH] Remove an assert for something that happens commonly while in cheat mode. git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8635 4a71c877-e1ca-e34f-864e-861f7616d084 --- src/structure.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/structure.c b/src/structure.c index 877cd4068..030f31eb8 100644 --- a/src/structure.c +++ b/src/structure.c @@ -1883,7 +1883,10 @@ STRUCTURE* buildStructure(STRUCTURE_STATS* pStructureType, UDWORD x, UDWORD y, U //don't create the Structure use existing one psBuilding = getTileStructure(map_coord(x), map_coord(y)); - ASSERT_OR_RETURN(NULL, psBuilding != NULL, "No owning structure for this module - %s", getStructName(pStructureType)); + if (!psBuilding) + { + return NULL; + } if (pStructureType->type == REF_FACTORY_MODULE) {