mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 21:20:01 -04:00
Core/Misc: replace (Player*) casts with ToPlayer()
This commit is contained in:
@@ -258,7 +258,7 @@ public:
|
||||
if (!unit || (unit->GetTypeId() != TYPEID_PLAYER))
|
||||
player = handler->GetSession()->GetPlayer();
|
||||
else
|
||||
player = (Player*)unit;
|
||||
player = unit->ToPlayer();
|
||||
|
||||
if (!unit)
|
||||
unit = player;
|
||||
|
||||
Reference in New Issue
Block a user