Skip to content

Commit

Permalink
Add const to Unit::GetVehicleInfo()
Browse files Browse the repository at this point in the history
A change for a branch in development

(based on cmangos/mangos-wotlk@dd6ff7e0b)

Signed-off-by: Xfurry <xfurry.cmangos@outlook.com>
  • Loading branch information
Warlockbugs authored and xfurry committed Jan 4, 2018
1 parent 303eea1 commit 07faa2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Entities/Unit.h
Expand Up @@ -1628,7 +1628,7 @@ class Unit : public WorldObject
void Unmount(bool from_aura = false);
MountCapabilityEntry const* GetMountCapability(uint32 mountType) const;

VehicleInfo* GetVehicleInfo() { return m_vehicleInfo; }
VehicleInfo* GetVehicleInfo() const { return m_vehicleInfo; }
bool IsVehicle() const { return m_vehicleInfo != nullptr; }
void SetVehicleId(uint32 entry, uint32 overwriteNpcEntry);

Expand Down

0 comments on commit 07faa2d

Please sign in to comment.