1
This commit is contained in:
parent
5db5fcf1a0
commit
4d8bac715f
@ -142,7 +142,7 @@ Player* Room::GetPlayerByUniId(int uniid)
|
||||
Human* Room::GetHumanByUniId(int uniid)
|
||||
{
|
||||
Entity* entity = GetEntityByUniId(uniid);
|
||||
return entity->entity_type == ET_Player ? (Human*)entity : nullptr;
|
||||
return entity && entity->entity_type == ET_Player ? (Human*)entity : nullptr;
|
||||
}
|
||||
|
||||
Entity* Room::GetEntityByUniId(int uniid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user