Browse Source

Fix error due to no Empty()

(cherry picked from commit e81af06584)
working_subtitles
Edmond Mondor 2 years ago committed by rarified
parent
commit
fd260827aa
  1. 2
      Sources/Plasma/FeatureLib/pfPython/cyAvatar.cpp

2
Sources/Plasma/FeatureLib/pfPython/cyAvatar.cpp

@ -1981,7 +1981,7 @@ hsBool cyAvatar::IsCurrentBrainHuman()
void cyAvatar::SetDontPanicLink(bool value)
{
if (!fRecvr.empty()) {
if ( fRecvr.Count() > 0 ) {
plArmatureMod* mod = plAvatarMgr::FindAvatar(fRecvr[0]);
if (mod)
mod->SetDontPanicLinkFlag(value);

Loading…
Cancel
Save