mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00:00
Prevent Crash if sTaxiPathStore.LookupEntry return nullptr
This commit is contained in:
@@ -178,6 +178,9 @@ uint32 TravelNodePath::getPrice()
|
||||
|
||||
TaxiPathEntry const* taxiPath = sTaxiPathStore.LookupEntry(pathObject);
|
||||
|
||||
if (!taxiPath)
|
||||
return 0;
|
||||
|
||||
return taxiPath->price;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user