mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Enchanting: Don't check price on self-enchanting (Bug #1701)
This commit is contained in:
parent
4a1e561015
commit
b370c0f7b5
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ namespace MWGui
|
|||
|
||||
MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayerPtr();
|
||||
int playerGold = player.getClass().getContainerStore(player).count(MWWorld::ContainerStore::sGoldId);
|
||||
if (mEnchanting.getEnchantPrice() > playerGold)
|
||||
if (mPtr != player && mEnchanting.getEnchantPrice() > playerGold)
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage18}");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue