mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08: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);
|
TaxiPathEntry const* taxiPath = sTaxiPathStore.LookupEntry(pathObject);
|
||||||
|
|
||||||
|
if (!taxiPath)
|
||||||
|
return 0;
|
||||||
|
|
||||||
return taxiPath->price;
|
return taxiPath->price;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user