mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Misc: Fix static analysis issues reported by Coverity Scan
This commit is contained in:
@@ -575,6 +575,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