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-861f7616d084master
parent
6503ef53b6
commit
d6cc3625b7
|
@ -1469,7 +1469,7 @@ BOOL scrBuildDroid(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT_OR_RETURN(false, psFactory != NULL, "NULL factory object");
|
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, player < MAX_PLAYERS, "Invalid player number");
|
||||||
ASSERT_OR_RETURN(false, productionRun <= UBYTE_MAX, "Production run too high");
|
ASSERT_OR_RETURN(false, productionRun <= UBYTE_MAX, "Production run too high");
|
||||||
ASSERT_OR_RETURN(false, (psFactory->pStructureType->type == REF_FACTORY ||
|
ASSERT_OR_RETURN(false, (psFactory->pStructureType->type == REF_FACTORY ||
|
||||||
|
|
Loading…
Reference in New Issue