possibly fix invisible car bug

This commit is contained in:
Lion Kortlepel
2021-02-26 22:17:23 +01:00
committed by Anonymous275
parent 714d31fb45
commit b777781c96
2 changed files with 2 additions and 1 deletions

View File

@@ -539,7 +539,7 @@ void TTCPServer::SyncClient(const std::weak_ptr<TClient>& c) {
if (!ClientPtr.expired()) {
auto client = ClientPtr.lock();
if (client != LockedClient) {
for (auto& v : LockedClient->GetAllCars()) {
for (auto& v : client->GetAllCars()) {
if (v != nullptr) {
if (LockedClient->GetStatus() < 0) {
Return = true;