Core/Vehicles: Remove unused field

(cherry picked from commit 203f175ec9)
This commit is contained in:
Shauren
2021-08-28 13:35:21 +02:00
parent b7addbafe8
commit ff80b5ad67
2 changed files with 1 additions and 5 deletions

View File

@@ -34,7 +34,7 @@
#include <sstream>
Vehicle::Vehicle(Unit* unit, VehicleEntry const* vehInfo, uint32 creatureEntry) :
UsableSeatNum(0), _me(unit), _vehicleInfo(vehInfo), _creatureEntry(creatureEntry), _status(STATUS_NONE), _lastShootPos()
UsableSeatNum(0), _me(unit), _vehicleInfo(vehInfo), _creatureEntry(creatureEntry), _status(STATUS_NONE)
{
for (int8 i = 0; i < MAX_VEHICLE_SEATS; ++i)
{

View File

@@ -67,9 +67,6 @@ class TC_GAME_API Vehicle : public TransportBase
bool IsVehicleInUse() const;
bool IsControllableVehicle() const;
void SetLastShootPos(Position const& pos) { _lastShootPos.Relocate(pos); }
Position const& GetLastShootPos() const { return _lastShootPos; }
SeatMap::iterator GetSeatIteratorForPassenger(Unit* passenger);
SeatMap Seats; ///< The collection of all seats on the vehicle. Including vacant ones.
@@ -123,7 +120,6 @@ class TC_GAME_API Vehicle : public TransportBase
uint32 _creatureEntry; ///< Can be different than the entry of _me in case of players
Status _status; ///< Internal variable for sanity checks
Position _lastShootPos;
typedef std::list<VehicleJoinEvent*> PendingJoinEventContainer;
PendingJoinEventContainer _pendingJoinEvents; ///< Collection of delayed join events for prospective passengers