Index: source/gui/CDropDown.cpp =================================================================== --- source/gui/CDropDown.cpp +++ source/gui/CDropDown.cpp @@ -34,13 +34,11 @@ AddSetting("dropdown_size"); AddSetting("dropdown_buffer"); AddSetting("minimum_visible_items"); -// AddSetting("sound_closed"); - AddSetting("sound_disabled"); AddSetting("sound_enter"); AddSetting("sound_leave"); AddSetting("sound_opened"); - AddSetting("sprite"); // Background that sits around the size + // "sprite" registered by CList is used as the background AddSetting("sprite_disabled"); AddSetting("sprite_list"); // Background of the drop down list AddSetting("sprite2"); // Button that sits to the right @@ -52,7 +50,6 @@ // Add these in CList! And implement TODO //AddSetting("textcolor_over"); //AddSetting("textcolor_pressed"); - AddSetting("textcolor_selected"); AddSetting("textcolor_disabled"); // Scrollbar is forced to be true. Index: source/gui/IGUIObject.cpp =================================================================== --- source/gui/IGUIObject.cpp +++ source/gui/IGUIObject.cpp @@ -116,11 +116,10 @@ template void IGUIObject::AddSetting(const CStr& Name) { - // This can happen due to inheritance if (SettingExists(Name)) - return; - - m_Settings[Name] = new CGUISetting(*this, Name); + LOGERROR("The setting '%s' already exists on the object '%s'!", Name.c_str(), GetPresentableName().c_str()); + else + m_Settings.emplace(Name, new CGUISetting(*this, Name)); } bool IGUIObject::SettingExists(const CStr& Setting) const