mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +00:00
debug log if vehicle gets destroyed
This commit is contained in:
parent
df3269756c
commit
d481fcd3a7
@ -5,6 +5,7 @@
|
|||||||
class TVehicleData final {
|
class TVehicleData final {
|
||||||
public:
|
public:
|
||||||
TVehicleData(int ID, const std::string& Data);
|
TVehicleData(int ID, const std::string& Data);
|
||||||
|
~TVehicleData();
|
||||||
|
|
||||||
bool IsInvalid() const { return _ID == -1; }
|
bool IsInvalid() const { return _ID == -1; }
|
||||||
int ID() const { return _ID; }
|
int ID() const { return _ID; }
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
#include "VehicleData.h"
|
#include "VehicleData.h"
|
||||||
|
#include "Common.h"
|
||||||
|
|
||||||
TVehicleData::TVehicleData(int ID, const std::string& Data)
|
TVehicleData::TVehicleData(int ID, const std::string& Data)
|
||||||
: _ID(ID)
|
: _ID(ID)
|
||||||
, _Data(Data) {
|
, _Data(Data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TVehicleData::~TVehicleData() {
|
||||||
|
debug("vehicle " + std::to_string(_ID) + " destroyed");
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user