Skip to content

Commit

Permalink
displayProximityMsgs: Additional sanity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Nov 13, 2024
1 parent 4492b11 commit d75654e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/display3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2320,7 +2320,15 @@ static void displayProximityMsgs(const glm::mat4& viewMatrix, const glm::mat4 &p
unsigned x, y;
if (psProxDisp->type == POS_PROXDATA)
{
if (!psProxDisp->psMessage->pViewData)
{
continue;
}
VIEW_PROXIMITY *pViewProximity = (VIEW_PROXIMITY *)psProxDisp->psMessage->pViewData->pData;
if (!pViewProximity)
{
continue;
}
x = pViewProximity->x;
y = pViewProximity->y;
}
Expand Down

0 comments on commit d75654e

Please sign in to comment.