mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Prevent Crash if sTaxiPathStore.LookupEntry return nullptr
This commit is contained in:
parent
5a0c27637e
commit
8a30d10617
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user