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;

View File

@ -4,6 +4,7 @@
TVehicleData::TVehicleData(int ID, const std::string& Data)
: _ID(ID)
, _Data(Data) {
debug("vehicle " + std::to_string(_ID) + " constructed");
}
TVehicleData::~TVehicleData() {