1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-31 22:15:33 +00:00

fix speechcraft skill increasing when persuade didn't succeed

This commit is contained in:
scrawl 2012-11-11 19:18:41 +01:00
parent dc8f74138b
commit 8e847fdc6e

View file

@ -977,7 +977,8 @@ namespace MWDialogue
// practice skill
MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayer().getPlayer();
MWWorld::Class::get(player).skillUsageSucceeded(player, ESM::Skill::Speechcraft, 0);
if (success)
MWWorld::Class::get(player).skillUsageSucceeded(player, ESM::Skill::Speechcraft, 0);
// add status message to dialogue window