X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=path.cc;fp=path.cc;h=ab69018bb93322e5feac73db37470dd87848a9dc;hb=6afe91234d7807ce82b96a071087decb2f7aead3;hp=1c5ecd130399fba82bbc30bac6bec71e27ae1a69;hpb=7704ecb19140055b21e1012cd0d394f2a6db98eb;p=mtp.git diff --git a/path.cc b/path.cc index 1c5ecd1..ab69018 100644 --- 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() {