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