mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Core/Misc: Fix static analysis issues
Fix static analysis issues reported by Coverity Scan
This commit is contained in:
@@ -3001,10 +3001,12 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui
|
||||
// OnGossipHello only filter set, skip action if OnReportUse
|
||||
if (var0)
|
||||
return;
|
||||
break;
|
||||
case 2:
|
||||
// OnReportUse only filter set, skip action if OnGossipHello
|
||||
if (!var0)
|
||||
return;
|
||||
break;
|
||||
default:
|
||||
// Ignore any other value
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user