summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormgueydan <gueydan.mathieuÃ@gmail.com>2013-09-08 12:37:14 +0200
committermgueydan <gueydan.mathieuÃ@gmail.com>2013-09-08 12:37:14 +0200
commitead953898d06faa75c6f5cffae6dd284c19db83a (patch)
tree6dfd71290f7bd8b0a8e107eac3feeb707ec79c25
parentReplacing chunCk by chunk (diff)
downloadcuberite-ead953898d06faa75c6f5cffae6dd284c19db83a.tar
cuberite-ead953898d06faa75c6f5cffae6dd284c19db83a.tar.gz
cuberite-ead953898d06faa75c6f5cffae6dd284c19db83a.tar.bz2
cuberite-ead953898d06faa75c6f5cffae6dd284c19db83a.tar.lz
cuberite-ead953898d06faa75c6f5cffae6dd284c19db83a.tar.xz
cuberite-ead953898d06faa75c6f5cffae6dd284c19db83a.tar.zst
cuberite-ead953898d06faa75c6f5cffae6dd284c19db83a.zip
Diffstat (limited to '')
-rw-r--r--source/Chunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp
index 0d6ce335d..00010e806 100644
--- a/source/Chunk.cpp
+++ b/source/Chunk.cpp
@@ -451,7 +451,7 @@ void cChunk::CollectMobCensus(cMobCensus& toFill)
{
try
{
- cMonster& Monster = (cMonster&)(**itr);
+ cMonster& Monster = dynamic_cast<cMonster&>(**itr);
currentPosition = Monster.GetPosition();
for (std::list<const Vector3d*>::const_iterator itr2 = playerPositions.begin(); itr2 != playerPositions.end(); itr2 ++)
{