From b9470119699531b15ac2fa05d64b7b5446515a76 Mon Sep 17 00:00:00 2001 From: vadzz Date: Tue, 17 Dec 2024 11:50:36 +0300 Subject: [PATCH] Fix client build --- shared/V8ResourceImpl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/shared/V8ResourceImpl.cpp b/shared/V8ResourceImpl.cpp index 3428617b..884c6702 100644 --- a/shared/V8ResourceImpl.cpp +++ b/shared/V8ResourceImpl.cpp @@ -643,8 +643,11 @@ void V8ResourceImpl::PrintHealth() Log::Info << "Resource health: " << resource->GetName() << Log::Endl; Log::Info << " - Entities: " << entities.size() << Log::Endl; Log::Info << " - Timers: " << timers.size() << Log::Endl; - Log::Info << " - Timer benchmarks: " << benchmarkTimers.size() << Log::Endl; - Log::Info << " - Vehicle passengers: " << vehiclePassengers.size() << Log::Endl; + Log::Info << " - Timer benchmarks: " << benchmarkTimers.size() << Log::Endl; + +#ifdef ALT_SERVER_API + Log::Info << " - Vehicle passengers: " << vehiclePassengers.size() << Log::Endl; +#endif // ALT_SERVER_API } // Internal script globals