Commit 5b5ffa2c authored by Marius Pa's avatar Marius Pa
Browse files

movetracker reduce scope of variable v

Fix cppcheck warning "src/movetracker.cpp:617: The scope of the variable 'v'
can be reduced.".
parent 7632f5b1
Pipeline #254177 passed with stage
in 3 minutes
......@@ -614,9 +614,8 @@ int MoveTracker::findWhichCube (const int sceneID,
int indexV = -1;
// Find which cube in the current scene is closest to the given position.
CubeView * v;
LOOP (n, cubeViews.size()) {
v = (n);
CubeView * v = (n);
if (v->sceneID != sceneID) {
continue; // Skip unwanted scene IDs.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment