diff options
author | mgueydan <gueydan.mathieuÃ@gmail.com> | 2013-09-08 12:37:14 +0200 |
---|---|---|
committer | mgueydan <gueydan.mathieuÃ@gmail.com> | 2013-09-08 12:37:14 +0200 |
commit | ead953898d06faa75c6f5cffae6dd284c19db83a (patch) | |
tree | 6dfd71290f7bd8b0a8e107eac3feeb707ec79c25 /source | |
parent | Replacing chunCk by chunk (diff) | |
download | cuberite-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.cpp | 2 |
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 ++) { |