From be9e80434f24d6622d7db0042f21dbbdd05abfa9 Mon Sep 17 00:00:00 2001 From: AbraKabastard <80svillain@gmail.com> Date: Tue, 28 May 2019 10:46:59 -0300 Subject: [PATCH] Core/Gossip: Fix warning explicitly assigning value of variable of type 'int32' (aka 'int') to itself --- src/game/GossipDef.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/game/GossipDef.cpp b/src/game/GossipDef.cpp index 765bbe2b..967a42a8 100644 --- a/src/game/GossipDef.cpp +++ b/src/game/GossipDef.cpp @@ -46,10 +46,7 @@ void GossipMenu::AddMenuItem(int32 menuItemId, uint8 icon, std::string const& me for (GossipMenuItemContainer::const_iterator itr = _menuItems.begin(); itr != _menuItems.end(); ++itr) { if (int32(itr->first) > menuItemId) - { - menuItemId = menuItemId; break; - } menuItemId = itr->first + 1; }