From 8a30d1061723ab4f0c228d024d0df958aad78b39 Mon Sep 17 00:00:00 2001 From: Wishmaster117 <140754794+Wishmaster117@users.noreply.github.com> Date: Sat, 11 Oct 2025 10:57:54 +0200 Subject: [PATCH] Prevent Crash if sTaxiPathStore.LookupEntry return nullptr --- src/TravelNode.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TravelNode.cpp b/src/TravelNode.cpp index a29bebf1..8e880067 100644 --- a/src/TravelNode.cpp +++ b/src/TravelNode.cpp @@ -178,6 +178,9 @@ uint32 TravelNodePath::getPrice() TaxiPathEntry const* taxiPath = sTaxiPathStore.LookupEntry(pathObject); + if (!taxiPath) + return 0; + return taxiPath->price; }