mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-09 01:06:25 +00:00
Add more memory safety, fix print(nil) crash
This commit is contained in:
@@ -128,7 +128,7 @@ void SyncClient(Client*c){
|
||||
for (auto& client : CI->Clients) {
|
||||
if(client != nullptr){
|
||||
if (client.get() != c) {
|
||||
for (VData *v : client->GetAllCars()) {
|
||||
for (auto& v : client->GetAllCars()) {
|
||||
if(v != nullptr){
|
||||
Respond(c, v->Data, true);
|
||||
std::this_thread::sleep_for(std::chrono::seconds(2));
|
||||
|
||||
Reference in New Issue
Block a user