Core/Misc: Fix static analysis issues

Fix static analysis issues reported by Coverity Scan
This commit is contained in:
Giacomo Pozzoni
2019-05-31 12:21:48 +02:00
parent ee5101fbf7
commit e12398afdc

View File

@@ -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;