Skip to content
This repository has been archived by the owner on Mar 13, 2021. It is now read-only.

Commit

Permalink
Prevent a needless exception to be thrown on every run of the game loop
Browse files Browse the repository at this point in the history
This helps when debugging and break on exception is enabled.
  • Loading branch information
hanikesn committed Jul 14, 2012
1 parent 09cfd9b commit 91ae91c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/openmw/mwworld/worldimp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,8 @@ namespace MWWorld

mWeatherManager->update (duration);

if(!mFacedHandle.empty()) {

// inform the GUI about focused object
try
{
Expand Down Expand Up @@ -811,6 +813,9 @@ namespace MWWorld
MWWorld::Ptr null;
MWBase::Environment::get().getWindowManager()->setFocusObject(null);
}
} else {
MWBase::Environment::get().getWindowManager()->setFocusObject(MWWorld::Ptr());
}

if (!mRendering->occlusionQuerySupported())
{
Expand Down

1 comment on commit 91ae91c

@zinnschlag
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. If you also fix the indenting and then send me a pull request, I will merge your branch into my master branch.

Please sign in to comment.