diff --git a/Sources/Plasma/FeatureLib/pfPython/cyAvatar.cpp b/Sources/Plasma/FeatureLib/pfPython/cyAvatar.cpp index 0d81bbba..2c7d61da 100644 --- a/Sources/Plasma/FeatureLib/pfPython/cyAvatar.cpp +++ b/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);