Improve logging from assert when number of context variables don't match.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5748 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2008-08-02 20:54:45 +00:00
parent 98bd943cc3
commit 9699a5080f
1 changed files with 2 additions and 2 deletions

View File

@ -260,8 +260,8 @@ static BOOL eventLoadContext(const SDWORD version, char *pBuffer, UDWORD *pSize,
if (numVars != *((SWORD*)pPos))
{
debug( LOG_ERROR, "eventLoadContext: number of context variables does not match the script code" );
abort();
ASSERT(false, "Context %d of %d: Number of context variables (%d) does not match the script code (%d)",
context, numContext, numVars, *((SWORD*)pPos));
return false;
}
pPos += sizeof(SWORD);