1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-12 21:39:26 +00:00

Attempting to make a potion with no effects removes the ingredients (Fixes #2722)

This commit is contained in:
scrawl 2015-06-24 03:52:27 +02:00
parent 33a3dabc31
commit 6f34a0501a

View File

@ -463,7 +463,10 @@ MWMechanics::Alchemy::Result MWMechanics::Alchemy::create (const std::string& na
return Result_NoName;
if (listEffects().empty())
{
removeIngredients();
return Result_NoEffects;
}
if (beginEffects() == endEffects())
{