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-861f7616d084master
parent
c5e91b5799
commit
f432051012
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue