message: check pobject
diff: @@ -322,8 +322,11 @@ NWNX_EXPORT ArgumentStack RemoveEffectById(ArgumentStack&& args)
  NWNX_EXPORT ArgumentStack ApplyEffect(ArgumentStack&& args)
  {
  auto *pObject = Utils::PopObject(args);
  + if(pObject)
  + {
  auto eEffect = args.extract<CGameEffect*>();
  pObject->ApplyEffect(eEffect, false, true);
  + }
  return {};
  }
  