*Cleanup in ObjectAccessor - this should fix some crashes
--HG-- branch : trunk
This commit is contained in:
1 parent
51400a4e15
commit
e232c0e235
13 files changed
+123
-160
No files matched your search
@@ -2017,7 +2017,7 @@ struct npc_seaforium_depth_chargeAI : public ScriptedAI
|
||||
{
|
||||
if (Creature* cCredit = me->FindNearestCreature(25402 + i, 10.0f))//25402-25405 credit markers
|
||||
{
|
||||
if (Unit* uOwner = me->GetOwner(true))
|
||||
if (Unit* uOwner = me->GetOwner())
|
||||
{
|
||||
Player* pOwner = uOwner->ToPlayer();
|
||||
if (pOwner && pOwner->GetQuestStatus(QUEST_BURY_THOSE_COCKROACHES) == QUEST_STATUS_INCOMPLETE)
|
||||
|
||||
@@ -753,7 +753,7 @@ bool GOHello_go_inconspicuous_landmark(Player *pPlayer, GameObject* /*pGO*/)
|
||||
|
||||
bool GOHello_go_soulwell(Player *pPlayer, GameObject* pGO)
|
||||
{
|
||||
Unit *caster = pGO->GetOwner(false);
|
||||
Unit *caster = pGO->GetOwner();
|
||||
if (!caster || caster->GetTypeId() != TYPEID_PLAYER)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user