mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-02 15:55:30 +00:00
Fixed Vehicle Data being copied on construction
This commit is contained in:
parent
e039eeaab8
commit
b953bae5da
@ -34,7 +34,7 @@ int TClient::GetOpenCarID() const {
|
||||
}
|
||||
|
||||
void TClient::AddNewCar(int Ident, const std::string& Data) {
|
||||
mVehicleData.insert(TVehicleData(Ident, Data));
|
||||
mVehicleData.emplace(Ident, Data);
|
||||
}
|
||||
|
||||
TClient::TVehicleDataLockPair TClient::GetAllCars() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user