Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/targets.cc')
-rw-r--r--src/client/targets.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/targets.cc b/src/client/targets.cc
index 2350fce..0bec6c5 100644
--- a/src/client/targets.cc
+++ b/src/client/targets.cc
@@ -358,7 +358,7 @@ void frame()
}
// find the current target
- if (!core::localplayer()->view() && core::localcontrol()) {
+ if (!core::localplayer()->view() && core::localcontrol() && is_valid_hud_target(entity)) {
if (entity->id() == current_target_id) {
current_target = entity;