diff --git a/mapeditor/inspector/questwidget.cpp b/mapeditor/inspector/questwidget.cpp index e50d91c86..97e22f586 100644 --- a/mapeditor/inspector/questwidget.cpp +++ b/mapeditor/inspector/questwidget.cpp @@ -328,7 +328,7 @@ void QuestWidget::on_lKillTargetSelect_clicked() { if(auto * o = dynamic_cast(obj)) return o->ID != Obj::PRISON; - if(auto * o = dynamic_cast(obj)) + if(dynamic_cast(obj)) return true; return false; };