summaryrefslogtreecommitdiffstats
path: root/src/vehicles/CarGen.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-22 23:55:29 +0200
committerGitHub <noreply@github.com>2020-05-22 23:55:29 +0200
commit8fb72afac96434153d948d91685f7291e9b946d9 (patch)
tree25d4899924a591e4dafd44caf488dd9bf62db95e /src/vehicles/CarGen.cpp
parentMerge pull request #579 from Xinerki/miami (diff)
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-8fb72afac96434153d948d91685f7291e9b946d9.tar
re3-8fb72afac96434153d948d91685f7291e9b946d9.tar.gz
re3-8fb72afac96434153d948d91685f7291e9b946d9.tar.bz2
re3-8fb72afac96434153d948d91685f7291e9b946d9.tar.lz
re3-8fb72afac96434153d948d91685f7291e9b946d9.tar.xz
re3-8fb72afac96434153d948d91685f7291e9b946d9.tar.zst
re3-8fb72afac96434153d948d91685f7291e9b946d9.zip
Diffstat (limited to 'src/vehicles/CarGen.cpp')
-rw-r--r--src/vehicles/CarGen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vehicles/CarGen.cpp b/src/vehicles/CarGen.cpp
index 7c02f3ee..a1d58ab2 100644
--- a/src/vehicles/CarGen.cpp
+++ b/src/vehicles/CarGen.cpp
@@ -57,7 +57,8 @@ void CCarGenerator::DoInternalProcessing()
mi = -m_nModelIndex;
if (m_nModelIndex == -1 || !CStreaming::HasModelLoaded(mi)) {
CZoneInfo pZone;
- CTheZones::GetZoneInfoForTimeOfDay(&FindPlayerCoors(), &pZone);
+ CVector pos = FindPlayerCoors();
+ CTheZones::GetZoneInfoForTimeOfDay(&pos, &pZone);
mi = CCarCtrl::ChooseCarModel(CCarCtrl::ChooseCarRating(&pZone));
if (mi < 0)
return;