debug log if vehicle gets destroyed

This commit is contained in:
Lion Kortlepel 2021-02-26 22:01:15 +01:00 committed by Anonymous275
parent df3269756c
commit d481fcd3a7
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@
class TVehicleData final {
public:
TVehicleData(int ID, const std::string& Data);
~TVehicleData();
bool IsInvalid() const { return _ID == -1; }
int ID() const { return _ID; }

View File

@ -1,6 +1,11 @@
#include "VehicleData.h"
#include "Common.h"
TVehicleData::TVehicleData(int ID, const std::string& Data)
: _ID(ID)
, _Data(Data) {
}
TVehicleData::~TVehicleData() {
debug("vehicle " + std::to_string(_ID) + " destroyed");
}