mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Core/Misc: Fix static analysis issues reported by Coverity Scan
(cherry picked from commit df92ceb9bc)
This commit is contained in:
@@ -541,6 +541,8 @@ void Map::ScriptsProcess()
|
||||
}
|
||||
}
|
||||
|
||||
ASSERT(worldObject);
|
||||
|
||||
// quest id and flags checked at script loading
|
||||
if ((worldObject->GetTypeId() != TYPEID_UNIT || ((Unit*)worldObject)->IsAlive()) &&
|
||||
(step.script->QuestExplored.Distance == 0 || worldObject->IsWithinDistInMap(player, float(step.script->QuestExplored.Distance))))
|
||||
|
||||
Reference in New Issue
Block a user