Merge branch 'dev' of https://github.com/OpenWaterAnalytics/EPANET into copy-dev-swig

This commit is contained in:
Michael Tryby
2018-08-27 09:40:20 -04:00
3 changed files with 3 additions and 8 deletions

View File

@@ -4737,7 +4737,7 @@ int DLLEXPORT EN_addnode(EN_ProjectHandle ph, char *id, EN_NodeType nodeType) {
}
}
} else {
nIdx = net->Nnodes++;
nIdx = net->Nnodes+1;
node = &net->Node[nIdx];
coord = &net->Coord[nIdx];
net->Ntanks++;