Merge pull request #1727 from Wishmaster117/Prevent-Crash-if-sTaxiPathStore.LookupEntry-return-nullptr

Prevent Crash if sTaxiPathStore.LookupEntry return nullptr
This commit is contained in:
kadeshar 2025-10-11 13:21:51 +02:00 committed by GitHub
commit bd13d6be80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -178,6 +178,9 @@ uint32 TravelNodePath::getPrice()
TaxiPathEntry const* taxiPath = sTaxiPathStore.LookupEntry(pathObject);
if (!taxiPath)
return 0;
return taxiPath->price;
}