aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/LogicCommands.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/LogicCommands.hh')
-rw-r--r--src/FbTk/LogicCommands.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/LogicCommands.hh b/src/FbTk/LogicCommands.hh
index a94dad8..4f20864 100644
--- a/src/FbTk/LogicCommands.hh
+++ b/src/FbTk/LogicCommands.hh
@@ -38,10 +38,10 @@ public:
38 RefCount<Command> &t, RefCount<Command> &f): 38 RefCount<Command> &t, RefCount<Command> &f):
39 m_cond(cond), m_t(t), m_f(f) { } 39 m_cond(cond), m_t(t), m_f(f) { }
40 void execute() { 40 void execute() {
41 if (m_cond->bool_execute()) 41 if (m_cond->bool_execute()) {
42 m_t->execute(); 42 if (*m_t) m_t->execute();
43 else 43 } else
44 m_f->execute(); 44 if (*m_f) m_f->execute();
45 } 45 }
46 46
47private: 47private: