Commit 9803f0d1 authored by Frederik Schwarzer's avatar Frederik Schwarzer
Browse files

Initialize vectors with correct size.

parent c285e49d
......@@ -497,8 +497,8 @@ void Board::newGame()
auto oldfield = m_field;
decltype(m_field) tiles;
decltype(m_field) pos;
decltype(m_field) tiles(m_field.size());
decltype(m_field) pos(m_field.size());
//jwickers: in case the game cannot made solvable we do not want to run an infinite loop
auto maxAttempts = 200;
......
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