From 69a616e55d8e510a2bb482d3dcb7d312f9028931 Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 26 Aug 2013 19:21:14 +0200 Subject: Core/EventAI: Shut up compiler warnings --- src/server/game/AI/EventAI/CreatureEventAI.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/AI/EventAI/CreatureEventAI.cpp b/src/server/game/AI/EventAI/CreatureEventAI.cpp index 39fcedf9a33..c35dbebaad5 100644 --- a/src/server/game/AI/EventAI/CreatureEventAI.cpp +++ b/src/server/game/AI/EventAI/CreatureEventAI.cpp @@ -1083,8 +1083,10 @@ inline uint32 CreatureEventAI::GetRandActionParam(uint32 rnd, uint32 param1, uin { case 0: return param1; case 1: return param2; - case 2: return param3; + case 2: break; } + + return param3; } inline int32 CreatureEventAI::GetRandActionParam(uint32 rnd, int32 param1, int32 param2, int32 param3) @@ -1093,8 +1095,10 @@ inline int32 CreatureEventAI::GetRandActionParam(uint32 rnd, int32 param1, int32 { case 0: return param1; case 1: return param2; - case 2: return param3; + case 2: break; } + + return param3; } inline Unit* CreatureEventAI::GetTargetByType(uint32 target, Unit* actionInvoker) -- cgit v1.2.3