mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2025-08-18 12:15:36 +00:00
possibly fix invisible car bug
This commit is contained in:
parent
714d31fb45
commit
b777781c96
@ -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;
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user