forked from mirror/azerothcore-wotlk
fix(Core/PlayerTaxi): prevent pop_front crash (#22292)
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
co-authored by
Copilot
parent
56f8f6ab98
commit
e21dd80381
@@ -65,6 +65,9 @@ public:
|
||||
[[nodiscard]] uint32 GetCurrentTaxiPath() const;
|
||||
uint32 NextTaxiDestination()
|
||||
{
|
||||
if (m_TaxiDestinations.empty())
|
||||
return 0;
|
||||
|
||||
m_TaxiDestinations.pop_front();
|
||||
return GetTaxiDestination();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user