Browse Source

Fix error due to no Empty()

tickets/34/34/1
Edmond Mondor 3 years ago
parent
commit
e81af06584
  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