diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-22 01:42:04 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-22 01:42:04 +0200 |
commit | 864847a6fe5461581232a68b64d98dd15d035330 (patch) | |
tree | 0d57b42ff992fa7afe651f6e74da950168aa030a /src/vehicles/CarGen.cpp | |
parent | script revision (diff) | |
download | re3-864847a6fe5461581232a68b64d98dd15d035330.tar re3-864847a6fe5461581232a68b64d98dd15d035330.tar.gz re3-864847a6fe5461581232a68b64d98dd15d035330.tar.bz2 re3-864847a6fe5461581232a68b64d98dd15d035330.tar.lz re3-864847a6fe5461581232a68b64d98dd15d035330.tar.xz re3-864847a6fe5461581232a68b64d98dd15d035330.tar.zst re3-864847a6fe5461581232a68b64d98dd15d035330.zip |
Diffstat (limited to 'src/vehicles/CarGen.cpp')
-rw-r--r-- | src/vehicles/CarGen.cpp | 3 |
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; |