mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-01-13 01:08:37 +00:00
Merge pull request #35 from zeb139/fix-emptyAH-segfault
Added check to EmptyAuctionHouses() to prevent potential segfault
This commit is contained in:
@@ -1589,6 +1589,12 @@ void AuctionHouseBot::InitializeConfiguration()
|
||||
|
||||
void AuctionHouseBot::EmptyAuctionHouses()
|
||||
{
|
||||
if (AHCharactersGUIDsForQuery.empty())
|
||||
{
|
||||
LOG_ERROR("module", "AuctionHouseBot: No character GUIDs found when emptying Auction Houses via '.ahbot empty' .");
|
||||
return;
|
||||
}
|
||||
|
||||
struct AuctionInfo {
|
||||
uint32 itemID {0};
|
||||
uint32 characterGUID {0};
|
||||
|
||||
Reference in New Issue
Block a user