From 0152a6ffb4c31ab007d96efd04a1dabedbbd743b Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Tue, 22 Oct 2013 18:30:26 +0200 Subject: [PATCH] Temporary fix for world not locking chunkmap in TickMobs. Reported as #283; this is a hotfix only. --- source/World.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/World.cpp b/source/World.cpp index d1ddb0e6e..a61c19d63 100644 --- a/source/World.cpp +++ b/source/World.cpp @@ -736,6 +736,9 @@ void cWorld::TickWeather(float a_Dt) void cWorld::TickMobs(float a_Dt) { + // _X 2013_10_22: This is a quick fix for #283 - the world needs to be locked while ticking mobs + cWorld::cLock Lock(*this); + // before every Mob action, we have to count them depending on the distance to players, on their family ... cMobCensus MobCensus; m_ChunkMap->CollectMobCensus(MobCensus);