Fix buildDroid() assert message and make it more informative to help track down a bug in it.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9117 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2010-01-10 22:41:35 +00:00 committed by Git SVN Gateway
parent 6503ef53b6
commit d6cc3625b7
1 changed files with 1 additions and 1 deletions

View File

@ -1469,7 +1469,7 @@ BOOL scrBuildDroid(void)
}
ASSERT_OR_RETURN(false, psFactory != NULL, "NULL factory object");
ASSERT_OR_RETURN(false, psTemplate != NULL, "NULL factory object");
ASSERT_OR_RETURN(false, psTemplate != NULL, "NULL template object sent to %s", objInfo((BASE_OBJECT *)psFactory));
ASSERT_OR_RETURN(false, player < MAX_PLAYERS, "Invalid player number");
ASSERT_OR_RETURN(false, productionRun <= UBYTE_MAX, "Production run too high");
ASSERT_OR_RETURN(false, (psFactory->pStructureType->type == REF_FACTORY ||