Fix crash when attempting to leave a null group.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7884 4a71c877-e1ca-e34f-864e-861f7616d084
master
Guangcong Luo 2009-07-19 21:46:58 +00:00 committed by Git SVN Gateway
parent 081e5ab566
commit 91b7bd2b99
1 changed files with 2 additions and 2 deletions

View File

@ -208,8 +208,8 @@ void grpLeave(DROID_GROUP *psGroup, DROID *psDroid)
{
DROID *psPrev, *psCurr;
ASSERT(grpInitialized, "Group code not initialized yet");
ASSERT( psGroup != NULL,
ASSERT_OR_RETURN(false, grpInitialized, "Group code not initialized yet");
ASSERT_OR_RETURN(false, psGroup != NULL,
"grpLeave: invalid group pointer" );
if (psDroid != NULL && psDroid->psGroup != psGroup)