From: Yann Dirson Date: Sun, 20 Apr 2008 19:52:41 +0000 (+0200) Subject: Add more assertions. X-Git-Url: https://repo.or.cz/w/tagua/yd.git/commitdiff_plain/f1f5bdb5334997115fd18667eb8172f8dcfc6035 Add more assertions. --- diff --git a/src/ui.cpp b/src/ui.cpp index c14745a..1a3c31d 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -27,7 +27,9 @@ class UIActionStateObserver : public ActionStateObserver { public: UIActionStateObserver(const UI* ui, const shared_ptr& controller) : m_ui(ui) - , m_controller(controller.get()) { } + , m_controller(controller.get()) { + Q_ASSERT(m_controller); + } virtual void notifyActionStateChange(GraphicalGame::ActionState state) { // check that the associated controller is active