+ int tempNum = pDataArray[i]->position.size();
+ if (position.size() < tempNum) { position.resize(tempNum, 0); }
+ if (averageQ.size() < tempNum) { averageQ.resize(tempNum, 0); }
+ if (scores.size() < tempNum) {
+ scores.resize(tempNum);
+ for (int i = 0; i < scores.size(); i++) { scores[i].resize(41, 0); }
+ }
+
+ for (int k = 0; k < tempNum; k++) { position[k] += pDataArray[i]->position[k]; }
+ for (int k = 0; k < tempNum; k++) { averageQ[k] += pDataArray[i]->averageQ[k]; }
+ for (int k = 0; k < tempNum; k++) { for (int j = 0; j < 41; j++) { scores[k][j] += pDataArray[i]->scores[k][j]; } }
+