fixed bug causing failure of flag actions on groups

This commit is contained in:
csoler 2018-01-09 22:11:11 +01:00
parent ed81b4cac6
commit 506190a64b

View File

@ -2076,7 +2076,7 @@ bool RsGenExchange::processGrpMask(const RsGxsGroupId& grpId, ContentValue &grpC
// first find out which mask is involved // first find out which mask is involved
int32_t value, mask, currValue; int32_t value, mask, currValue;
std::string key; std::string key;
RsGxsGrpMetaData* grpMeta = NULL; const RsGxsGrpMetaData* grpMeta = NULL;
bool ok = false; bool ok = false;
RsGxsGrpMetaTemporaryMap grpMetaMap; RsGxsGrpMetaTemporaryMap grpMetaMap;
@ -2087,7 +2087,8 @@ bool RsGenExchange::processGrpMask(const RsGxsGroupId& grpId, ContentValue &grpC
if((mit = grpMetaMap.find(grpId)) != grpMetaMap.end()) if((mit = grpMetaMap.find(grpId)) != grpMetaMap.end())
{ {
const RsGxsGrpMetaData *grpMeta = mit->second; grpMeta = mit->second;
if (!grpMeta) if (!grpMeta)
{ {
#ifdef GEN_EXCH_DEBUG #ifdef GEN_EXCH_DEBUG