Refactoring Cleanup
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user