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:
parent
33a3dabc31
commit
6f34a0501a
@ -463,7 +463,10 @@ MWMechanics::Alchemy::Result MWMechanics::Alchemy::create (const std::string& na
|
|||||||
return Result_NoName;
|
return Result_NoName;
|
||||||
|
|
||||||
if (listEffects().empty())
|
if (listEffects().empty())
|
||||||
|
{
|
||||||
|
removeIngredients();
|
||||||
return Result_NoEffects;
|
return Result_NoEffects;
|
||||||
|
}
|
||||||
|
|
||||||
if (beginEffects() == endEffects())
|
if (beginEffects() == endEffects())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user