1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00

fix uninitalised stuff

This commit is contained in:
scrawl 2012-03-27 20:59:58 +02:00
parent e398c51f8a
commit 8f6d10f229
2 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,7 @@ using namespace Ogre;
OcclusionQuery::OcclusionQuery(OEngine::Render::OgreRenderer* renderer, SceneNode* sunNode) :
mSunTotalAreaQuery(0), mSunVisibleAreaQuery(0), mSingleObjectQuery(0), mActiveQuery(0),
mDoQuery(0), mSunVisibility(0), mQuerySingleObjectStarted(false),
mDoQuery(0), mSunVisibility(0), mQuerySingleObjectStarted(false), mTestResult(false),
mQuerySingleObjectRequested(false), mResponding(true), mDelay(0), mWasVisible(false), mObjectWasVisible(false)
{
mRendering = renderer;
@ -211,7 +211,7 @@ void OcclusionQuery::update(float duration)
mDoQuery = true;
}
if (!mSingleObjectQuery->isStillOutstanding() && mQuerySingleObjectStarted)
if (mQuerySingleObjectStarted && !mSingleObjectQuery->isStillOutstanding())
{
mDelay = 0;
mResponding = true;

View File

@ -157,7 +157,8 @@ namespace MWWorld
const std::string& master, const boost::filesystem::path& resDir,
bool newGame, Environment& environment, const std::string& encoding)
: mPlayer (0), mLocalScripts (mStore), mGlobalVariables (0),
mSky (true), mEnvironment (environment), mNextDynamicRecord (0), mCells (mStore, mEsm, *this)
mSky (true), mEnvironment (environment), mNextDynamicRecord (0), mCells (mStore, mEsm, *this),
mNumFacing(0)
{
mPhysics = new PhysicsSystem(renderer);
mPhysEngine = mPhysics->getEngine();