mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +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) {
|
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() {
|
TClient::TSetOfVehicleData& TClient::GetAllCars() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user