forked from mirror/openmw-tes3mp
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();
|
MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayerPtr();
|
||||||
int playerGold = player.getClass().getContainerStore(player).count(MWWorld::ContainerStore::sGoldId);
|
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}");
|
MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage18}");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue