Commit 700908db authored by Julian Helfferich's avatar Julian Helfferich

Fix Coverity #76272: Uninitialized members

In KBlocksGameReplayer constructor some member variables remain
uninitialized in case the replay file cannot be opened. In this case,
the game replayer is useless and the list of records always empty.

However, I set the variables anyhow.
parent f24b4ed0
......@@ -20,6 +20,9 @@ KBlocksGameReplayer::KBlocksGameReplayer(const char *fileName, bool isBinaryMode
if (!pFile) {
mGameCount = 0;
mGameSeed = 0;
mSameSeed = false;
mStepLength = 1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment