Core: Fix warnings
This commit is contained in:
1 parent
ab088cf5ba
commit
20eeeaf597
2 files changed
+2
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user