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-861f7616d084master
parent
98bd943cc3
commit
9699a5080f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue