Core/Misc: replace (Player*) casts with ToPlayer()
This commit is contained in:
1 parent
1ac4f0a9c1
commit
380cf5d241
15 files changed
+189
-186
No files matched your search
@@ -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