EmilyMansfield / citybuilder

Source code for my SFML Citybuilder tutorial
MIT License
199 stars 51 forks source link

Iota Error #5

Open l-ellenbeck opened 9 years ago

l-ellenbeck commented 9 years ago

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.