X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=path.cc;h=ab69018bb93322e5feac73db37470dd87848a9dc;hb=9bbc3775491edae5bb92679ecca0f525877371f5;hp=d38b88b6f8e6edc309d2a60f0165792a3127fc86;hpb=c8a37f33eb29f651fed648a48918390f0da1eefb;p=mtp.git diff --git a/path.cc b/path.cc index d38b88b..ab69018 100644 --- a/path.cc +++ b/path.cc @@ -18,11 +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() {