Move assert in formationUpdateSpeed under conditional to stop a crash.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4657 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2008-04-16 18:05:18 +00:00
parent c5e91b5799
commit f432051012
1 changed files with 1 additions and 2 deletions

View File

@ -189,10 +189,9 @@ static void formationUpdateSpeed(FORMATION *psFormation, const DROID* psNew)
SDWORD iUnit;
F_MEMBER *asMembers = psFormation->asMembers;
ASSERT(psNew->type == OBJ_DROID, "We've been passed a DROID that really isn't a DROID");
if (psNew != NULL)
{
ASSERT(psNew->type == OBJ_DROID, "We've been passed a DROID that really isn't a DROID");
if ( psFormation->iSpeed > psNew->baseSpeed)
{
psFormation->iSpeed = psNew->baseSpeed;