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
master
Guangcong Luo 2009-12-07 20:01:46 +00:00 committed by Git SVN Gateway
parent 36dd15bd0d
commit 1858a569e7
1 changed files with 4 additions and 1 deletions

View File

@ -1883,7 +1883,10 @@ STRUCTURE* buildStructure(STRUCTURE_STATS* pStructureType, UDWORD x, UDWORD y, U
//don't create the Structure use existing one //don't create the Structure use existing one
psBuilding = getTileStructure(map_coord(x), map_coord(y)); 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) if (pStructureType->type == REF_FACTORY_MODULE)
{ {