diff --git a/dependencies/subprojects/animationwindow/src/widgets/DropdownList.cpp b/dependencies/subprojects/animationwindow/src/widgets/DropdownList.cpp index f71370414ae2b8f2615da83458a13ba62b753e85..c22eedf2f2d7b1fd45600cb5e712b0bba589b405 100644 --- a/dependencies/subprojects/animationwindow/src/widgets/DropdownList.cpp +++ b/dependencies/subprojects/animationwindow/src/widgets/DropdownList.cpp @@ -3,7 +3,7 @@ TDT4102::DropdownList::DropdownList(TDT4102::Point location, unsigned int width, unsigned int height, std::vector<std::string> &initialOptions) : TDT4102::Widget(location, width, height) { - if(options.size() == 0) { + if(initialOptions.size() == 0) { throw std::runtime_error("The list of options must contain at least one option to choose from!"); } options = initialOptions;