Prevent Crash if sTaxiPathStore.LookupEntry return nullptr

This commit is contained in:
Wishmaster117
2025-10-11 10:57:54 +02:00
parent 5a0c27637e
commit 8a30d10617

View File

@@ -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;
} }