stylistic

This commit is contained in:
joaquintides
2017-11-04 13:08:36 +01:00
parent 39794695bc
commit 00848ec1c8
8 changed files with 8 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ int main()
// populate sprs
std::mt19937 gen{92748}; // some arbitrary random seed
std::discrete_distribution<> rnd({1,1,1});
std::discrete_distribution<> rnd{{1,1,1}};
for(int i=0;i<4;++i){ // assign each type with 1/3 probability
switch(rnd(gen)){
case 0: sprs.push_back(std::make_unique<warrior>(i));;break;