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-861f7616d084master
parent
081e5ab566
commit
91b7bd2b99
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue