mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 08:15:35 +00:00
AddNewCar: use insert with make_unique again
This commit is contained in:
parent
b777781c96
commit
266303b09d
@ -34,7 +34,7 @@ int TClient::GetOpenCarID() const {
|
||||
}
|
||||
|
||||
void TClient::AddNewCar(int Ident, const std::string& Data) {
|
||||
mVehicleData.emplace(new TVehicleData { Ident, Data });
|
||||
mVehicleData.insert(std::make_unique<TVehicleData>(Ident, Data));
|
||||
}
|
||||
|
||||
TClient::TSetOfVehicleData& TClient::GetAllCars() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user