minor cleanup

This commit is contained in:
Marc Zinnschlag 2014-04-07 09:56:36 +02:00
parent fafb7501e3
commit 03b3487f1b

View file

@ -250,12 +250,9 @@ namespace MWMechanics
} }
int graphSize = mGraph.size(); int graphSize = mGraph.size();
std::vector<float> gScore; std::vector<float> gScore (graphSize, -1);
gScore.resize(graphSize, -1); std::vector<float> fScore (graphSize, -1);
std::vector<float> fScore; std::vector<int> graphParent (graphSize, -1);
fScore.resize(graphSize, -1);
std::vector<int> graphParent;
graphParent.resize(graphSize, -1);
// gScore & fScore keep costs for each pathgrid point in mPoints // gScore & fScore keep costs for each pathgrid point in mPoints
gScore[start] = 0; gScore[start] = 0;