From 379f2c90ce2a72bebac3d2a073084bb057eba6dd Mon Sep 17 00:00:00 2001 From: Tim Felgentreff <timfelgentreff@gmail.com> Date: Sun, 29 Nov 2020 10:39:21 +0100 Subject: [PATCH] remove useless assert --- src/guichan/widget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/guichan/widget.cpp b/src/guichan/widget.cpp index f90a2c378..20e4e060c 100644 --- a/src/guichan/widget.cpp +++ b/src/guichan/widget.cpp @@ -382,7 +382,8 @@ namespace gcn if (mFocusHandler == NULL) { //throw GCN_EXCEPTION("No focushandler set (did you add the widget to the gui?)."); - assert(!"No focushandler set (did you add the widget to the gui?)."); + // assert(!"No focushandler set (did you add the widget to the gui?)."); + return; } if (!mEnabled || (mFocusHandler->getModalFocused() != NULL &&