Core/Misc: Fix static analysis issues
This commit is contained in:
1 parent
4ee51ff96e
commit
2e0f2ee3fb
3 files changed
+7
-1
No files matched your search
@@ -1535,6 +1535,7 @@ void Group::CountTheRoll(Rolls::iterator rollI, Map* allowedMap)
|
||||
roll->getLoot()->NotifyItemRemoved(roll->itemSlot);
|
||||
roll->getLoot()->unlootedCount--;
|
||||
ItemTemplate const* pProto = sObjectMgr->GetItemTemplate(roll->itemid);
|
||||
ASSERT(pProto);
|
||||
player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL, 13262); // Disenchant
|
||||
|
||||
ItemPosCountVec dest;
|
||||
|
||||
@@ -1973,6 +1973,7 @@ void Guild::HandleUpdateMemberRank(WorldSession* session, ObjectGuid guid, bool
|
||||
}
|
||||
|
||||
Member const* memberMe = GetMember(player->GetGUID());
|
||||
ASSERT(memberMe);
|
||||
uint8 rankId = memberMe->GetRankId();
|
||||
if (demote)
|
||||
{
|
||||
|
||||
@@ -2528,8 +2528,10 @@ void Map::GetFullTerrainStatusForPosition(float x, float y, float z, PositionFul
|
||||
if (vmapData.areaInfo)
|
||||
data.areaInfo = boost::in_place(vmapData.areaInfo->adtId, vmapData.areaInfo->rootId, vmapData.areaInfo->groupId, vmapData.areaInfo->mogpFlags);
|
||||
|
||||
float mapHeight = VMAP_INVALID_HEIGHT;
|
||||
GridMap* gmap = const_cast<Map*>(this)->GetGrid(x, y);
|
||||
float mapHeight = gmap->getHeight(x, y);
|
||||
if (gmap)
|
||||
mapHeight = gmap->getHeight(x, y);
|
||||
|
||||
// area lookup
|
||||
AreaTableEntry const* areaEntry = nullptr;
|
||||
@@ -2537,6 +2539,8 @@ void Map::GetFullTerrainStatusForPosition(float x, float y, float z, PositionFul
|
||||
if (WMOAreaTableEntry const* wmoEntry = GetWMOAreaTableEntryByTripple(vmapData.areaInfo->rootId, vmapData.areaInfo->adtId, vmapData.areaInfo->groupId))
|
||||
areaEntry = sAreaTableStore.LookupEntry(wmoEntry->areaId);
|
||||
|
||||
data.areaId = 0;
|
||||
|
||||
if (areaEntry)
|
||||
{
|
||||
data.floorZ = vmapData.floorZ;
|
||||
|
||||
Reference in new issue
Block a user