mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 14:12:25 +00:00
Fixed Vehicle Data being copied on construction
This commit is contained in:
+1
-1
@@ -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.insert(TVehicleData(Ident, Data));
|
mVehicleData.emplace(Ident, Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
TClient::TVehicleDataLockPair TClient::GetAllCars() {
|
TClient::TVehicleDataLockPair TClient::GetAllCars() {
|
||||||
|
|||||||
Reference in New Issue
Block a user