Vehicle ghost fix, server list fix

This commit is contained in:
Anonymous275
2020-11-07 23:29:42 +02:00
parent 7c2871f1b3
commit a2b6b29ea1
8 changed files with 60 additions and 98 deletions

View File

@@ -261,7 +261,6 @@ void SyncResources(SOCKET Sock){
LFS.write(File, Recv);
LFS.close();
}
ZeroMemory(File,Size);
delete[] File;
}while(fs::file_size(a) != std::stoi(*FS) && !Terminate);
if(!Terminate)fs::copy_file(a,Sec("BeamNG/mods")+a.substr(a.find_last_of('/')), fs::copy_options::overwrite_existing);