Browse Source

Fix error due to no Empty()

(cherry picked from commit e81af06584)
working_subtitles
Edmond Mondor 3 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) void cyAvatar::SetDontPanicLink(bool value)
{ {
if (!fRecvr.empty()) { if ( fRecvr.Count() > 0 ) {
plArmatureMod* mod = plAvatarMgr::FindAvatar(fRecvr[0]); plArmatureMod* mod = plAvatarMgr::FindAvatar(fRecvr[0]);
if (mod) if (mod)
mod->SetDontPanicLinkFlag(value); mod->SetDontPanicLinkFlag(value);

Loading…
Cancel
Save