diff options
Diffstat (limited to 'src/game/CombatHandler.cpp')
-rw-r--r-- | src/game/CombatHandler.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/CombatHandler.cpp b/src/game/CombatHandler.cpp index f732f128fd0..b49f573a5e4 100644 --- a/src/game/CombatHandler.cpp +++ b/src/game/CombatHandler.cpp @@ -75,7 +75,13 @@ void WorldSession::HandleSetSheathedOpcode( WorldPacket & recv_data ) //sLog.outDebug( "WORLD: Recvd CMSG_SETSHEATHED Message guidlow:%u value1:%u", GetPlayer()->GetGUIDLow(), sheathed ); - GetPlayer()->SetSheath(sheathed); + if(sheathed >= MAX_SHEATH_STATE) + { + sLog.outError("Unknown sheath state %u ??",sheathed); + return; + } + + GetPlayer()->SetSheath(SheathState(sheathed)); } void WorldSession::SendAttackStop(Unit const* enemy) |