diff --git a/src/Features/Demo/GhostEntity.cpp b/src/Features/Demo/GhostEntity.cpp index 835e1f5fb..a79a3e30f 100644 --- a/src/Features/Demo/GhostEntity.cpp +++ b/src/Features/Demo/GhostEntity.cpp @@ -156,7 +156,7 @@ void GhostEntity::Display() const int tris = 30; auto player = client->GetPlayer(GET_SLOT() + 1); - Vector pos = client->GetAbsOrigin(player) + client->GetViewOffset(player); + Vector pos = player ? client->GetAbsOrigin(player) + client->GetViewOffset(player) : Vector{ 0, 0, 0 }; float dx = origin.x - pos.x; float dy = origin.y - pos.y;