From d6cc3625b7184377016370695acc39b76363d4f4 Mon Sep 17 00:00:00 2001 From: Per Inge Mathisen Date: Sun, 10 Jan 2010 22:41:35 +0000 Subject: [PATCH] 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 --- src/scriptfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scriptfuncs.c b/src/scriptfuncs.c index 51603957d..920b10a1d 100644 --- a/src/scriptfuncs.c +++ b/src/scriptfuncs.c @@ -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 ||