Browse Source

Change to prevent crashing when fCurStage is null

working-2022q2
Edmond Mondor 3 years ago committed by rarified
parent
commit
fededb574b
  1. 2
      Sources/Plasma/PubUtilLib/plAvatar/plAvBrainClimb.cpp

2
Sources/Plasma/PubUtilLib/plAvatar/plAvBrainClimb.cpp

@ -326,7 +326,7 @@ bool plAvBrainClimb::IProcessExitStage(double time, float elapsed)
float curBlend = ai->GetBlend();
if(curBlend > .99) // reached peak strength
if(fCurStage && curBlend > .99) // reached peak strength
{
fCurStage->Detach(fAvMod); // remove the (now completely masked) underlying anim
fCurStage = nil;

Loading…
Cancel
Save