From 8aaa98b8b76de643ea4dbf46fef39ddad77dceae Mon Sep 17 00:00:00 2001 From: Edmond Mondor Date: Fri, 29 Apr 2022 07:46:54 -0700 Subject: [PATCH] Change to prevent crashing when fCurStage is null --- Sources/Plasma/PubUtilLib/plAvatar/plAvBrainClimb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainClimb.cpp b/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainClimb.cpp index 9439ebe8..72b22571 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plAvBrainClimb.cpp +++ b/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;