mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Added null check to Queue::findHighestRelevanceBasket() (#1686)
This commit is contained in:
@@ -88,6 +88,11 @@ ActionBasket* Queue::findHighestRelevanceBasket() const
|
||||
|
||||
for (ActionBasket* basket : actions)
|
||||
{
|
||||
if (!basket)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (basket->getRelevance() > maxRelevance)
|
||||
{
|
||||
maxRelevance = basket->getRelevance();
|
||||
|
||||
Reference in New Issue
Block a user