Skip to content

Commit

Permalink
Some assertions hit if doing it the old way, maybe this is how you're…
Browse files Browse the repository at this point in the history
… supposed to cast to an int
  • Loading branch information
AdamTadeusz committed Jul 29, 2024
1 parent 48a8f42 commit 05eb23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mp/src/game/shared/neo/neo_ghost_cap_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void CNEOGhostCapturePoint::Think_CheckMyRadius(void)
}

const Vector dir = player->GetAbsOrigin() - GetAbsOrigin();
const int distance = dir.Length();
const int distance = static_cast<int>(dir.Length());

Assert(distance >= 0);

Expand Down

0 comments on commit 05eb23f

Please sign in to comment.