Refactoring Cleanup

This commit is contained in:
hondacrx
2020-02-03 14:42:20 -05:00
parent 2a065d22da
commit 752137af52
37 changed files with 107 additions and 157 deletions
+3 -4
View File
@@ -79,12 +79,12 @@ namespace Game
if (!item)
return;
uint bidderAccId = 0;
uint bidderAccId;
ObjectGuid bidderGuid = ObjectGuid.Create(HighGuid.Player, auction.bidder);
Player bidder = Global.ObjAccessor.FindPlayer(bidderGuid);
// data for gm.log
string bidderName = "";
bool logGmTrade = false;
bool logGmTrade;
if (bidder)
{
@@ -428,8 +428,7 @@ namespace Game
public bool RemoveAuction(AuctionEntry auction)
{
Global.ScriptMgr.OnAuctionRemove(this, auction);
return AuctionsMap.TryRemove(auction.Id, out AuctionEntry removedItem);
return AuctionsMap.TryRemove(auction.Id, out _);
}
public void Update()