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/targeticonbutton.cc')
-rw-r--r--src/client/targeticonbutton.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/targeticonbutton.cc b/src/client/targeticonbutton.cc
index 8bd3b1a..1ef2da0 100644
--- a/src/client/targeticonbutton.cc
+++ b/src/client/targeticonbutton.cc
@@ -33,7 +33,7 @@ bool TargetIconButton::on_keypress(const int key, const unsigned int modifier)
void TargetIconButton::draw()
{
- enable(targets::current() && ((targets::current()->flags() & entity_flags) == entity_flags));
+ set_enabled(targets::current() && ((targets::current()->flags() & entity_flags) == entity_flags));
ui::IconButton::draw();
}