Core: Fix warnings

This commit is contained in:
Vincent_Michael
2013-03-09 20:15:11 +01:00
parent ab088cf5ba
commit 20eeeaf597
2 changed files with 2 additions and 2 deletions

View File

@@ -275,7 +275,7 @@ void WorldSession::HandleGameObjectUseOpcode(WorldPacket& recvData)
{
// ignore for remote control state
if (_player->m_mover != _player)
if (!_player->IsOnVehicle(_player->m_mover) || !_player->IsMounted() && !obj->GetGOInfo()->IsUsableMounted())
if (!_player->IsOnVehicle(_player->m_mover) || !(_player->IsMounted() && obj->GetGOInfo()->IsUsableMounted()))
return;
obj->Use(_player);

View File

@@ -153,7 +153,7 @@ public:
* .deserter bg remove
* @endcode
*/
static bool HandleDeserterRemove(ChatHandler* handler, char const* args, bool isInstance)
static bool HandleDeserterRemove(ChatHandler* handler, char const* /*args*/, bool isInstance)
{
Player* player = handler->getSelectedPlayer();
if (!player)