Remove default string when creating a potion that won't work

This commit is contained in:
Andrew Lanzone 2025-06-10 21:42:51 -07:00
parent 47b3674bac
commit 1e3ddee291

View File

@ -119,8 +119,6 @@ namespace MWGui
void AlchemyWindow::onCreateButtonClicked(MyGUI::Widget* _sender) void AlchemyWindow::onCreateButtonClicked(MyGUI::Widget* _sender)
{ {
if (Settings::gui().mControllerMenus && mNameEdit->getCaption().length() == 0)
mNameEdit->setCaption("Unknown potion");
mAlchemy->setPotionName(mNameEdit->getCaption()); mAlchemy->setPotionName(mNameEdit->getCaption());
int count = mAlchemy->countPotionsToBrew(); int count = mAlchemy->countPotionsToBrew();
count = std::min(count, mBrewCountEdit->getValue()); count = std::min(count, mBrewCountEdit->getValue());