Update.
[mtp.git] / path.cc
diff --git a/path.cc b/path.cc
index 1c5ecd1..ab69018 100644 (file)
--- a/path.cc
+++ b/path.cc
@@ -18,9 +18,9 @@
 
 #include "path.h"
 
-Path::Path(int l) {
-  length = l;
-  nodes = new int[length];
+Path::Path(int n) {
+  nb_nodes = n;
+  nodes = new int[nb_nodes];
 }
 
 Path::~Path() {