citybuilder icon indicating copy to clipboard operation
citybuilder copied to clipboard

Iota Error

Open l-ellenbeck opened this issue 10 years ago • 0 comments

The file "city.cpp" misses the following include: "#include < numeric >" The function void City::shuffleTiles() has an error. You call: "std::iota(shuffledTiles.begin(), shuffledTiles.end(), 1);" However you need to change it to: std::iota(shuffledTiles.begin(), shuffledTiles.end(), 0);

The 0 is important, because a vector is 0 initialised.

l-ellenbeck avatar Sep 01 '15 19:09 l-ellenbeck