possibly fix invisible car bug

This commit is contained in:
Lion Kortlepel authored and Anonymous275 committed 2021-03-18 23:44:14 +02:00
1 parent 714d31fb45
commit b777781c96
2 files changed
+2 -1

No files matched your search

+1 -1
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;
+1
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() {