[FIXED] Floater filter remove check is backwards

master
Kitty Barnett 2020-09-16 15:09:15 +02:00
parent c18e207bcf
commit 6b0838e59e
2 changed files with 2 additions and 2 deletions

View File

@ -2035,7 +2035,7 @@ void RlvBehaviourToggleHandler<RLV_BHVR_PAY>::onCommandToggle(ERlvBehaviour eBhv
// Start or stop filtering opening the pay avatar floater
if (fHasBhvr)
{
RLV_VERIFY(RlvUIEnabler::instance().addGenericFloaterFilter("pay_resident"));
RLV_VERIFY(RlvUIEnabler::instance().addGenericFloaterFilter("pay_resident", std::string(RLV_STRING_BLOCKED_GENERIC)));
}
else
{

View File

@ -303,7 +303,7 @@ bool RlvUIEnabler::addGenericFloaterFilter(const std::string& strFloaterName, co
bool RlvUIEnabler::removeGenericFloaterFilter(const std::string& strFloaterName)
{
auto itFloater = m_FilteredFloaterMap.find(strFloaterName);
if (itFloater != m_FilteredFloaterMap.end())
if (m_FilteredFloaterMap.end() == itFloater)
return false;
m_FilteredFloaterMap.erase(itFloater);