From 9c746310de824299d78c9248a6289b278446ef76 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 27 Nov 2011 00:29:32 +0100 Subject: [PATCH] Correctly number new agents --- main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cc b/main.cc index aad7bbd..dab4017 100644 --- a/main.cc +++ b/main.cc @@ -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. */