mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-02 07:45:26 +00:00
use emplace instead of insert + make_unique for new cars
This commit is contained in:
parent
d481fcd3a7
commit
714d31fb45
@ -34,7 +34,7 @@ int TClient::GetOpenCarID() const {
|
||||
}
|
||||
|
||||
void TClient::AddNewCar(int Ident, const std::string& Data) {
|
||||
mVehicleData.insert(std::make_unique<TVehicleData>(TVehicleData { Ident, Data }));
|
||||
mVehicleData.emplace(new TVehicleData { Ident, Data });
|
||||
}
|
||||
|
||||
TClient::TSetOfVehicleData& TClient::GetAllCars() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user