From ca9f5674ab89eb209745766df8752e61a79c211f Mon Sep 17 00:00:00 2001 From: Kitty Barnett Date: Thu, 30 Jun 2016 22:11:31 +0200 Subject: [PATCH] [FIXED] Crash on @detach=force (thankies Eglan) --HG-- branch : RLVa --- indra/newview/rlvhelper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/rlvhelper.h b/indra/newview/rlvhelper.h index 3c28ea0a0d..72b157ec94 100644 --- a/indra/newview/rlvhelper.h +++ b/indra/newview/rlvhelper.h @@ -450,7 +450,7 @@ struct RlvCommandOptionGeneric { bool isAttachmentPoint() const { return (!isEmpty()) && (typeid(LLViewerJointAttachment*) == m_varOption.type()); } bool isAttachmentPointGroup() const { return (!isEmpty()) && (typeid(ERlvAttachGroupType) == m_varOption.type()); } - bool isEmpty() const { return m_varOption.empty(); } + bool isEmpty() const { return typeid(boost::blank) == m_varOption.type(); } bool isNumber() const { return (!isEmpty()) && (typeid(float) == m_varOption.type()); } bool isSharedFolder() const { return (!isEmpty()) && (typeid(LLViewerInventoryCategory*) == m_varOption.type()); } bool isString() const { return (!isEmpty()) && (typeid(std::string) == m_varOption.type()); } @@ -467,7 +467,7 @@ struct RlvCommandOptionGeneric const LLVector3d& getVector() const { return (isVector()) ? boost::get(m_varOption) : LLVector3d::zero; } LLWearableType::EType getWearableType() const { return (isWearableType()) ? boost::get(m_varOption) : LLWearableType::WT_INVALID; } - typedef boost::variant rlv_option_generic_t; + typedef boost::variant rlv_option_generic_t; void operator=(const rlv_option_generic_t& optionValue) { m_varOption = optionValue; } protected: rlv_option_generic_t m_varOption;