mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
Fixed crash in Get...Object call
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
c02898bad4
commit
dc05b4cad8
1 changed files with 3 additions and 3 deletions
|
|
@ -174,7 +174,7 @@ ObjectAccessor::GetCorpse(WorldObject const &u, uint64 guid)
|
|||
if(!ret)
|
||||
return NULL;
|
||||
if(ret->GetMapId() != u.GetMapId())
|
||||
ret = NULL;
|
||||
return NULL;
|
||||
if(ret->GetInstanceId() != u.GetInstanceId())
|
||||
return NULL;
|
||||
return ret;
|
||||
|
|
@ -224,7 +224,7 @@ ObjectAccessor::GetGameObject(WorldObject const &u, uint64 guid)
|
|||
if(!ret)
|
||||
return NULL;
|
||||
if(ret->GetMapId() != u.GetMapId())
|
||||
ret = NULL;
|
||||
return NULL;
|
||||
if(ret->GetInstanceId() != u.GetInstanceId())
|
||||
return NULL;
|
||||
return ret;
|
||||
|
|
@ -237,7 +237,7 @@ ObjectAccessor::GetDynamicObject(WorldObject const &u, uint64 guid)
|
|||
if(!ret)
|
||||
return NULL;
|
||||
if(ret->GetMapId() != u.GetMapId())
|
||||
ret = NULL;
|
||||
return NULL;
|
||||
if(ret->GetInstanceId() != u.GetInstanceId())
|
||||
return NULL;
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue