From e30b538cd3c2a73a96a43eb8a9a22c6b2944cece Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sat, 9 May 2020 00:07:35 +0300 Subject: fix --- src/control/CarCtrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp index 692627a9..8be39a86 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -302,7 +302,7 @@ CCarCtrl::GenerateOneRandomCar() else { int i; carModel = -1; - for (i = 10; i > 0 && (carModel == -1 || CStreaming::HasModelLoaded(carModel)); i--) { + for (i = 10; i > 0 && (carModel == -1 || !CStreaming::HasModelLoaded(carModel)); i--) { carModel = ChooseBoatModel(ChooseBoatRating(&zone)); } if (i == 0) -- cgit v1.2.3