Correctly number new agents

This commit is contained in:
Petr Baudis 2011-11-27 00:29:32 +01:00
parent 1a9dcce608
commit 9c746310de

View file

@ -70,7 +70,7 @@ next_agent:
do {
agentpos = &map.tile_at(random() % map.w, random() % map.h);
} while (agentpos->agent);
agents.push_back(new class agent(0, *agentpos, conn));
agents.push_back(new class agent(agents.size(), *agentpos, conn));
}
/* Run on_tick everywhere. */