- minor change
authorAnatoly <Titov_AI@pnpi.nrcki.ru>
Wed, 21 Oct 2020 16:06:29 +0000 (19:06 +0300)
committerAnatoly <Titov_AI@pnpi.nrcki.ru>
Wed, 21 Oct 2020 16:06:29 +0000 (19:06 +0300)
src/colorvec.cpp

index 94fad4042960fffe1b6214c67c7457e9ada6fc02..4d807ad681520b49354bd93d42673c0bc605f34e 100644 (file)
@@ -298,6 +298,7 @@ void anglesFileDump(const int frameNum, const std::string &output, const std::ve
         if (temp == 0) {
             file << std::setw(4) << 0;
         } else {
+            betaTemp.resize(0);
             betaTemp.resize(6, 0.); // magic number, meh
             for (size_t j = 0; j < colorFormation[i].betaAngles.size(); ++j) {
                 betaTemp[j % 6] += colorFormation[i].betaAngles[j];