summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-07-10 09:20:17 -0600
committerJared Adams <jaxad0127@gmail.com>2009-07-10 09:22:13 -0600
commit5d4d4534a9723ded7e76ce1f8c27765e8e86ca3d (patch)
treecb25899df503f7f1d47286b416b5b9ce96b2bddb /src
parent10aaead456a9a7f5a19441db2a8e6a957f8e7508 (diff)
downloadmanaserv-5d4d4534a9723ded7e76ce1f8c27765e8e86ca3d.tar.gz
manaserv-5d4d4534a9723ded7e76ce1f8c27765e8e86ca3d.tar.bz2
manaserv-5d4d4534a9723ded7e76ce1f8c27765e8e86ca3d.tar.xz
manaserv-5d4d4534a9723ded7e76ce1f8c27765e8e86ca3d.zip
Prevent Actors from getting ID 0
Causes client problems.
Diffstat (limited to 'src')
-rw-r--r--src/game-server/mapcomposite.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game-server/mapcomposite.cpp b/src/game-server/mapcomposite.cpp
index 3a1cf0c2..d330761e 100644
--- a/src/game-server/mapcomposite.cpp
+++ b/src/game-server/mapcomposite.cpp
@@ -330,6 +330,7 @@ MapContent::MapContent(Map *map)
: last_bucket(0), zones(NULL)
{
buckets[0] = new ObjectBucket;
+ buckets[0]->allocate(); // Skip ID 0
for (int i = 1; i < 256; ++i)
{
buckets[i] = NULL;