1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-19 19:53:53 +00:00

DialogueWindow: do not execute onFrame() when not visible

This commit is contained in:
Emanuel Guevel 2013-01-15 00:59:48 +01:00
parent f1f9173f24
commit 82287445af

View file

@ -490,7 +490,7 @@ void DialogueWindow::onReferenceUnavailable()
void DialogueWindow::onFrame()
{
if(mEnabled && mPtr.getTypeName() == typeid(ESM::NPC).name())
if(mMainWidget->getVisible() && mEnabled && mPtr.getTypeName() == typeid(ESM::NPC).name())
{
int disp = std::max(0, std::min(100,
MWBase::Environment::get().getMechanicsManager()->getDerivedDisposition(mPtr)