Fixed the bug in the generation nodes.

This commit is contained in:
mdtrooper 2016-02-18 16:49:11 +01:00
parent b20828c85d
commit 5659589e01
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class Networkmap extends Map {
foreach ($edges as $edge) {
$this->nodes[] = array('type' => ITEM_TYPE_EDGE_NETWORKMAP);
$edge['id_item'] = key(end($graph->nodes[]));
$edge['id_item'] = key(end($this->nodes));
$this->edges[] = $edge;
}
}