~openmw/openmw/openmw-packaging2

« back to all changes in this revision

Viewing changes to apps/openmw/mwgui/trainingwindow.cpp

  • Committer: Scott Howard
  • Date: 2015-11-27 08:01:08 UTC
  • Revision ID: showard@debian.org-20151127080108-vby93jqgdvxj8d6d
Cron update. Git hash: 37c8fea

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
#include "../mwworld/esmstore.hpp"
14
14
 
15
15
#include "../mwmechanics/npcstats.hpp"
 
16
#include "../mwmechanics/actorutil.hpp"
16
17
 
17
18
#include "tooltips.hpp"
18
19
 
68
69
    {
69
70
        mPtr = actor;
70
71
 
71
 
        MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayerPtr();
 
72
        MWWorld::Ptr player = MWMechanics::getPlayer();
72
73
        int playerGold = player.getClass().getContainerStore(player).count(MWWorld::ContainerStore::sGoldId);
73
74
 
74
75
        mPlayerGold->setCaptionWithReplacing("#{sGold}: " + MyGUI::utility::toString(playerGold));